noise-server/src/sqlite/users.sql
erik ce83c99420 Change data types according to sqlx
Co-authored-by: Elias Schriefer
2021-06-14 14:33:57 +00:00

10 lines
236 B
SQL

-- users definition
CREATE TABLE users (
id BLOB NOT NULL PRIMARY KEY,
user_name TEXT NOT NULL,
display_name TEXT,
activated BOOLEAN DEFAULT 0 NOT NULL CHECK (activated IN (0, 1)),
created INTEGER NOT NULL,
last_online INTEGER
);