Skip to content

Commit

Permalink
fix: use bigint[] instead of jsonb
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahman1s committed Jun 23, 2022
1 parent 6be45e1 commit 14d149d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/migrations/00001_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS channels (
topic VARCHAR(1000),
permissions BIGINT,
overwrites JSONB,
recipients JSONB,
recipients BIGINT[],
parent_id BIGINT,
owner_id BIGINT,
server_id BIGINT,
Expand All @@ -50,7 +50,7 @@ CREATE TABLE IF NOT EXISTS members (
joined_at TIMESTAMP NOT NULL,
nickname VARCHAR(32),
server_id BIGINT NOT NULL,
roles JSONB NOT NULL,
roles BIGINT[] NOT NULL,
FOREIGN KEY (server_id) REFERENCES servers(id) ON DELETE CASCADE,
FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE
);
Expand Down

0 comments on commit 14d149d

Please sign in to comment.