10 lines
259 B
SQL
10 lines
259 B
SQL
CREATE TABLE posts (
|
|
id INTEGER NOT NULL PRIMARY KEY,
|
|
parent INTEGER,
|
|
timestamp DATETIME NOT NULL,
|
|
author VARCHAR NOT NULL,
|
|
email VARCHAR NOT NULL,
|
|
title VARCHAR NOT NULL,
|
|
content VARCHAR NOT NULL,
|
|
FOREIGN KEY (parent) REFERENCES posts(id)
|
|
);
|