aboutsummaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 2589a07..3db8967 100644
--- a/schema.sql
+++ b/schema.sql
@@ -48,7 +48,8 @@ CREATE TABLE mailing_list_emails (
CREATE TABLE users (
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
- username TEXT NOT NULL UNIQUE,
+ username TEXT UNIQUE,
+ type TEXT NOT NULL CHECK (type IN ('pubkey_only', 'registered')),
password TEXT
);