init codebase
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS bans (
|
||||
community_id uuid NOT NULL REFERENCES communities (id) ON DELETE CASCADE,
|
||||
user_id uuid NOT NULL REFERENCES users (id) ON DELETE CASCADE,
|
||||
reason text,
|
||||
banned_by uuid REFERENCES users (id),
|
||||
created_at timestamptz DEFAULT now(),
|
||||
PRIMARY KEY (community_id, user_id)
|
||||
);
|
||||
Reference in New Issue
Block a user