A digital life memoir of your life
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
439 B

CREATE TABLE IF NOT EXISTS entry (
id TEXT PRIMARY KEY,
title TEXT,
content TEXT,
source TEXT
);
CREATE TABLE IF NOT EXISTS meta (
id TEXT PRIMARY KEY,
entry TEXT REFERENCES entry (id)
ON DELETE CASCADE,
name VARCHAR(255),
value VARCHAR(255)
);
CREATE TABLE IF NOT EXISTS attachment (
id TEXT PRIMARY KEY,
entry TEXT REFERENCES entry (id)
ON DELETE CASCADE,
name VARCHAR(100),
content_type VARCHAR(100),
content TEXT
);