new keys table to let auth::wall_entry check for api access
This commit is contained in:
parent
83576f1126
commit
125a728674
1
server/migrations/2020-06-02-055256_keys/down.sql
Normal file
1
server/migrations/2020-06-02-055256_keys/down.sql
Normal file
@ -0,0 +1 @@
|
||||
DROP TABLE `keys`'
|
9
server/migrations/2020-06-02-055256_keys/up.sql
Normal file
9
server/migrations/2020-06-02-055256_keys/up.sql
Normal file
@ -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`)
|
||||
);
|
Loading…
Reference in New Issue
Block a user