freechat/server/migrations/2020-02-04-083551_users/up.sql
2020-03-08 19:49:22 -07:00

12 lines
414 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` (
`userid` bigint UNSIGNED NOT NULL auto_increment,
`username` varchar(255) NOT NULL,
`key` varchar(255) NOT NULL,
`date` bigint UNSIGNED NOT NULL,
PRIMARY KEY( `userid` )
);