many changes

This commit is contained in:
2024-09-27 16:33:14 +02:00
parent 28b6ee1879
commit 969877cdb0
10 changed files with 345 additions and 227 deletions

20
Hentai_create.sql Normal file
View File

@ -0,0 +1,20 @@
CREATE TABLE artist (
id integer NOT NULL CONSTRAINT artist_pk PRIMARY KEY AUTOINCREMENT,
name text NOT NULL
);
CREATE TABLE links (
id integer NOT NULL CONSTRAINT links_pk PRIMARY KEY AUTOINCREMENT,
url text NOT NULL,
website_id integer NOT NULL,
artist_id integer NOT NULL,
CONSTRAINT links_artist FOREIGN KEY (artist_id)
REFERENCES artist (id),
CONSTRAINT links_website FOREIGN KEY (website_id)
REFERENCES website (id)
);
CREATE TABLE website (
id integer NOT NULL CONSTRAINT website_pk PRIMARY KEY AUTOINCREMENT,
name text NOT NULL
);