freechat/server/migrations/2020-05-17-225334_sessions/up.sql
shockrah 2b9635a2b1 removed auto_increment from session key id
Keys are to be generated by rust safely
2020-05-17 16:15:27 -07:00

9 lines
399 B
SQL

-- id's are given back to the user otherwise everything is server sided
-- NOTE: the expires column is not explicitly a date because the code required
-- to make the DATE field work with diesel is ass and looks annoying
CREATE TABLE IF NOT EXISTS `sessions` (
`id` bigint UNSIGNED NOT NULL,
`secret` varchar(255) NOT NULL,
`expires` bigint UNSIGNED NOT NULL,
PRIMARY KEY(`id`)
);