2023-12-18 17:00:25 +00:00
|
|
|
CREATE TABLE news (
|
|
|
|
id SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
title VARCHAR(256) NOT NULL,
|
|
|
|
content TEXT NOT NULL,
|
2023-12-18 20:22:29 +00:00
|
|
|
author VARCHAR(32) NOT NULL REFERENCES accounts(username),
|
2023-12-18 17:00:25 +00:00
|
|
|
created TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
|
|
);
|