diff options
author | Cara Salter <cara@devcara.com> | 2023-08-29 20:51:38 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-08-29 20:51:38 -0400 |
commit | 190bd7f073e77eb538731506a92a175880aef24e (patch) | |
tree | 25d578ec4d73556887e0b0f98fc866f1d86e9ea7 /migrations/20230829204517_create_plant_table.up.sql | |
parent | eb882d0cb6f497d6f083956e6400cb09efadbf41 (diff) | |
download | hkgi-190bd7f073e77eb538731506a92a175880aef24e.tar.gz hkgi-190bd7f073e77eb538731506a92a175880aef24e.zip |
Init database connector
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 +); |