init codebase
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE IF NOT EXISTS mentions (
|
||||
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
message_id uuid NOT NULL REFERENCES messages (id) ON DELETE CASCADE,
|
||||
target_type text NOT NULL CHECK (target_type IN ('user', 'channel', 'here')),
|
||||
target_id uuid
|
||||
);
|
||||
Reference in New Issue
Block a user