We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac722a0 commit 57b9651Copy full SHA for 57b9651
SCHEMA.sql
@@ -8,11 +8,12 @@ CREATE TABLE IF NOT EXISTS users(
8
CREATE TABLE IF NOT EXISTS applications(
9
id TEXT PRIMARY KEY,
10
user_id BIGINT NOT NULL,
11
- client_id TEXT UNIQUE,
+ client_id TEXT UNIQUE NOT NULL,
12
name TEXT NOT NULL,
13
+ url TEXT UNIQUE NOT NULL,
14
scopes TEXT NOT NULL,
15
bot_scopes TEXT NOT NULL,
- auths BIGINT,
16
+ auths BIGINT DEFAULT 0,
17
UNIQUE (user_id, name),
18
CONSTRAINT fk_applications_users FOREIGN KEY (user_id) REFERENCES users (id)
19
);
0 commit comments