feat: initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE IF NOT EXISTS posts (
|
||||
id bigserial PRIMARY KEY,
|
||||
title VARCHAR(255) NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
user_id bigint NOT NULL,
|
||||
created_at timestamp(0) with time zone NOT NULL DEFAULT NOW(),
|
||||
updated_at timestamp(0) with time zone NOT NULL DEFAULT NOW(),
|
||||
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE
|
||||
);
|
||||
Reference in New Issue
Block a user