renamed server/ to api/ since this is really only the api portion of the typical fc server
This commit is contained in:
2
server-api/migrations/2020-02-04-083657_invites/down.sql
Normal file
2
server-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`;
|
||||
15
server-api/migrations/2020-02-04-083657_invites/up.sql
Normal file
15
server-api/migrations/2020-02-04-083657_invites/up.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- @id : id of the invite
|
||||
|
||||
-- @expires : unix timestamp of when that invite expries
|
||||
-- can be set to null which means it never expires
|
||||
|
||||
-- @uses : can be null which means it doesn't have a use limit
|
||||
|
||||
-- @max_uses : if this is null uses only ever incremented but we don't care for destroying on that parameter
|
||||
CREATE TABLE IF NOT EXISTS `invites` (
|
||||
`id` bigint UNSIGNED NOT NULL,
|
||||
`expires` bigint,
|
||||
`uses` integer,
|
||||
`max_uses` integer,
|
||||
PRIMARY KEY( `id` )
|
||||
);
|
||||
Reference in New Issue
Block a user