freechat/server/migrations/2020-02-04-083551_users/up.sql
shockrah 811c6902ac new users schema
changed column names to be more concise
2020-05-06 00:35:01 -07:00

13 lines
429 B
SQL

-- 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
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,
PRIMARY KEY( `id` )
);