diff options
Diffstat (limited to 'migrations/20230829204517_create_plant_table.up.sql')
-rw-r--r-- | migrations/20230829204517_create_plant_table.up.sql | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/migrations/20230829204517_create_plant_table.up.sql b/migrations/20230829204517_create_plant_table.up.sql new file mode 100644 index 0000000..0302a0d --- /dev/null +++ b/migrations/20230829204517_create_plant_table.up.sql @@ -0,0 +1,8 @@ +CREATE TYPE plant_kind AS ENUM('bbc', 'hvv', 'cyl', 'dirt'); +CREATE TABLE Plant ( + id SERIAL PRIMARY KEY, + kind plant_kind NOT NULL DEFAULT 'dirt', + xp INTEGER NOT NULL DEFAULT 0, + xp_multiplier FLOAT NOT NULL DEFAULT 1, + next_yield TIMESTAMP +); |