Renaming project to json-api for clarity sake
This commit is contained in:
1
json-api/migrations/2020-07-05-215114_members/down.sql
Normal file
1
json-api/migrations/2020-07-05-215114_members/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE `members`;
|
||||
11
json-api/migrations/2020-07-05-215114_members/up.sql
Normal file
11
json-api/migrations/2020-07-05-215114_members/up.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- TODO: add rate limiter in some form
|
||||
-- PERMISSIONS start at 0 and full perms => all F's
|
||||
CREATE TABLE IF NOT EXISTS `members`(
|
||||
`id` BIGINT UNSIGNED NOT NULL auto_increment,
|
||||
`secret` varchar(256) NOT NULL,
|
||||
`name` varchar(256) NOT NULL,
|
||||
`joindate` bigint NOT NULL,
|
||||
`status` integer NOT NULL,
|
||||
`permissions` bigint UNSIGNED NOT NULL,
|
||||
PRIMARY KEY( `id` , `secret` )
|
||||
);
|
||||
Reference in New Issue
Block a user