new schema which ultimately simplfies things for us
This commit is contained in:
parent
489fdb69b8
commit
7131e1acf5
@ -1,15 +1,12 @@
|
|||||||
-- @id : id of the invite
|
-- @id : id of the invite which is also its kill date
|
||||||
|
|
||||||
-- @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
|
-- @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
|
-- @expires: boolean that tells wether the key expires or not
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `invites` (
|
CREATE TABLE IF NOT EXISTS `invites` (
|
||||||
`id` bigint UNSIGNED NOT NULL,
|
`id` BIGINT UNIQUE NOT NULL,
|
||||||
`expires` bigint,
|
`uses` BIGINT,
|
||||||
`uses` integer,
|
`expires` BOOLEAN NOT NULL,
|
||||||
`max_uses` integer,
|
|
||||||
PRIMARY KEY( `id` )
|
PRIMARY KEY( `id` )
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user