2023-02-23 00:04:26 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS signups (
|
|
|
|
id INTEGER PRIMARY KEY,
|
|
|
|
|
|
|
|
-- from user
|
|
|
|
created TEXT DEFAULT (strftime('%Y-%m-%dT%H:%M', 'now', 'localtime')),
|
|
|
|
email TEXT,
|
|
|
|
how TEXT,
|
|
|
|
why TEXT,
|
|
|
|
links TEXT,
|
|
|
|
|
|
|
|
-- admin provided
|
|
|
|
decision_time TEXT,
|
2023-02-23 22:20:39 +00:00
|
|
|
decision TEXT,
|
2023-02-23 00:04:26 +00:00
|
|
|
decided_by TEXT,
|
|
|
|
clean_email TEXT
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS notes (
|
|
|
|
id INTEGER PRIMARY KEY,
|
|
|
|
signupid INTEGER,
|
|
|
|
author TEXT,
|
|
|
|
content TEXT,
|
|
|
|
created TEXT DEFAULT (strftime('%Y-%m-%dT%H:%M', 'now', 'localtime')),
|
|
|
|
|
|
|
|
FOREIGN KEY (signupid) REFERENCES signups(signupid)
|
|
|
|
);
|