after reading the documentation, crazy right? I figured out i was making my life hard, this makes my life easy again
7 lines
248 B
SQL
7 lines
248 B
SQL
-- Your SQL goes here
|
|
CREATE TABLE messages (
|
|
uuid uuid PRIMARY KEY NOT NULL,
|
|
channel_uuid uuid NOT NULL REFERENCES channels(uuid) ON DELETE CASCADE,
|
|
user_uuid uuid NOT NULL REFERENCES users(uuid),
|
|
message varchar(4000) NOT NULL
|
|
);
|