shockrah
b4aa323577
admin user in the users table. Still need UUIDv7 in as primary keys but we're getting there slowly
17 lines
323 B
SQL
17 lines
323 B
SQL
CREATE TABLE IF NOT EXISTS users (
|
|
/* */
|
|
id UUID,
|
|
/* Acts as a kind of nick name per instance as it assumes no uniqueness */
|
|
username VARCHAR(256),
|
|
/* Basic salted+hashed password */
|
|
password VARCHAR(256),
|
|
PRIMARY KEY (id)
|
|
);
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS invites (
|
|
id BIGINT,
|
|
expires INTEGER,
|
|
PRIMARY KEY (id)
|
|
);
|