Adds an AdminPanel with currently active registration tokens.

This commit is contained in:
Roflin committed 2022-06-04 21:57:54 +02:00
1 parent 34737bfb6b
commit 65d2dece55
13 files changed
+490 -48

No files matched your search

@@ -0,0 +1,6 @@
-- This file should undo anything in `up.sql`
drop table registration_tokens;
ALTER TABLE gamenight
ALTER datetime TYPE VARCHAR;
@@ -0,0 +1,11 @@
-- Your SQL goes here
create table registration_tokens (
id UUID PRIMARY KEY,
token CHARACTER(32) NOT NULL,
single_use BOOLEAN NOT NULL,
expires TIMESTAMPTZ
);
ALTER TABLE gamenight
ALTER datetime TYPE TIMESTAMPTZ using datetime::timestamp;