Archived
4
2
This repository has been archived on 2024-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
hpr_generator/_sql/Create_Table_Episodes.sql

14 lines
447 B
MySQL
Raw Normal View History

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)
);