renamed server/ to api/ since this is really only the api portion of the typical fc server

This commit is contained in:
shockrah
2020-08-22 15:52:37 -07:00
parent afcc03959a
commit 0822be3d20
35 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE `sessions`;

View File

@@ -0,0 +1,8 @@
-- 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` (
`secret` varchar(255) NOT NULL,
`expires` bigint UNSIGNED NOT NULL,
PRIMARY KEY(`secret`)
);