Skip to content

Commit 57b9651

Browse files
committed
Update schema
1 parent ac722a0 commit 57b9651

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SCHEMA.sql

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ CREATE TABLE IF NOT EXISTS users(
88
CREATE TABLE IF NOT EXISTS applications(
99
id TEXT PRIMARY KEY,
1010
user_id BIGINT NOT NULL,
11-
client_id TEXT UNIQUE,
11+
client_id TEXT UNIQUE NOT NULL,
1212
name TEXT NOT NULL,
13+
url TEXT UNIQUE NOT NULL,
1314
scopes TEXT NOT NULL,
1415
bot_scopes TEXT NOT NULL,
15-
auths BIGINT,
16+
auths BIGINT DEFAULT 0,
1617
UNIQUE (user_id, name),
1718
CONSTRAINT fk_applications_users FOREIGN KEY (user_id) REFERENCES users (id)
1819
);

0 commit comments

Comments
 (0)