1
0
forked from HPR/hpr_generator

Add database creation and test data insert scripts

Use these files to generate a test database. This will also allow
for the tracking of schema changes.
This commit is contained in:
2022-06-29 00:45:27 -04:00
parent e31c4a2208
commit 3bab143697
5 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE Episodes (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
correspondent_id INTEGER NOT NULL,
is_explicit BOOLEAN DEFAULT 1 NOT NULL,
submitted DATETIME NOT NULL,
published DATETIME,
license VARCHAR(25) DEFAULT 'CC BY-SA 4.0' NOT NULL,
title VARCHAR(100) NOT NULL,
summary VARCHAR(100) NOT NULL,
series VARCHAR(100),
show_notes TEXT NOT NULL,
CONSTRAINT Episodes_FK FOREIGN KEY (correspondent_id) REFERENCES Episodes(id)
);