Renaming project to json-api for clarity sake
This commit is contained in:
2
json-api/migrations/2020-02-04-083657_invites/down.sql
Normal file
2
json-api/migrations/2020-02-04-083657_invites/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE `invites`;
|
||||
12
json-api/migrations/2020-02-04-083657_invites/up.sql
Normal file
12
json-api/migrations/2020-02-04-083657_invites/up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- @id : id of the invite which is also its kill date
|
||||
|
||||
-- @uses : can be null which means it doesn't have a use limit
|
||||
|
||||
-- @expires: boolean that tells wether the key expires or not
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `invites` (
|
||||
`id` BIGINT UNIQUE NOT NULL,
|
||||
`uses` BIGINT,
|
||||
`expires` BOOLEAN NOT NULL,
|
||||
PRIMARY KEY( `id` )
|
||||
);
|
||||
Reference in New Issue
Block a user