CREATE TABLE users (
id SERIAL NOT NULL PRIMARY KEY
);
CREATE TABLE comments (
id SERIAL NOT NULL PRIMARY KEY,
user_id INT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
CONSTRAINT fk_users_comment FOREIGN KEY (user_id) REFERENCES users (id)
ON UPDATE CASCADE
ON DELETE CASCADE
)