11 lines
259 B
MySQL
11 lines
259 B
MySQL
|
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)
|
||
|
);
|