smr/src/sql/create_table_images.sql

12 lines
267 B
SQL

/*
We may want to store images one day. This is unused for now
*/
CREATE TABLE IF NOT EXISTS images (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT,
image BLOB,
authorid REFERENCES authors(id) ON DELETE CASCADE,
upload_time INTEGER,
hashedip BLOB
);