smr/src/sql/create_table_comments.sql

10 lines
259 B
SQL

CREATE TABLE IF NOT EXISTS comments (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
postid REFERENCES posts(id) ON DELETE CASCADE,
author REFERENCES authors(id) ON DELETE CASCADE,
isanon INTEGER,
comment_text TEXT,
hashedip BLOB,
post_time INTEGER
);