* 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:
@@ -1,13 +1,12 @@
|
||||
-- id: simple id tracking users
|
||||
-- username: default name that users have to display
|
||||
-- display: used as a non-unique eye candy for users
|
||||
-- password: yea
|
||||
-- email: used for signing in to the server
|
||||
-- name: default name that users have to display
|
||||
-- date: date that they signed up
|
||||
-- status: online/offline/away etc.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `users` (
|
||||
`id` bigint UNSIGNED NOT NULL auto_increment,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`secret` varchar(255) NOT NULL,
|
||||
`date` bigint UNSIGNED NOT NULL,
|
||||
`status` int NOT NULL,
|
||||
`status` integer NOT NULL,
|
||||
PRIMARY KEY( `id` )
|
||||
);
|
||||
Reference in New Issue
Block a user