* fixed formating/comments in users schema
* channels schema now uses a bigint unsigned for pid this is to keep consistent with notion of id's being usize|u64 in rust * foreign key constraint added to keys table referencing user rows
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
-- Limits that are null just mean the limit does not exist
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `keys`(
|
||||
`id` varchar(64) NOT NULL,
|
||||
`secret` varchar(255) NOT NULL,
|
||||
`limit` integer,
|
||||
`uses` integer,
|
||||
PRIMARY KEY(`id`)
|
||||
`userid` bigint unsigned NOT NULL,
|
||||
PRIMARY KEY(`secret`),
|
||||
FOREIGN KEY `userid` REFERENCES users(`id`)
|
||||
);
|
||||
Reference in New Issue
Block a user