diff --git a/server/migrations/2020-06-02-055256_keys/down.sql b/server/migrations/2020-06-02-055256_keys/down.sql new file mode 100644 index 0000000..6cb1bab --- /dev/null +++ b/server/migrations/2020-06-02-055256_keys/down.sql @@ -0,0 +1 @@ +DROP TABLE `keys`' \ No newline at end of file diff --git a/server/migrations/2020-06-02-055256_keys/up.sql b/server/migrations/2020-06-02-055256_keys/up.sql new file mode 100644 index 0000000..b329049 --- /dev/null +++ b/server/migrations/2020-06-02-055256_keys/up.sql @@ -0,0 +1,9 @@ +-- ID's are given to properly auth'ed users +-- Limit represents a daily limit imposed on users +-- Limits that are null just mean the limit does not exist + +CREATE TABLE IF NOT EXISTS `keys`( + `id` varchar(64) NOT NULL, + `limit` integer, + PRIMARY KEY(`id`) +); \ No newline at end of file