diff --git a/DB/notes/db_toadd b/DB/notes/db_toadd deleted file mode 100755 index 1a1b79b..0000000 --- a/DB/notes/db_toadd +++ /dev/null @@ -1,3 +0,0 @@ -fsk - -Table: VF_Sub (wie VF_Lang) diff --git a/DB/notes/photo_2019-01-21_05-09-12.jpg b/DB/notes/photo_2019-01-21_05-09-12.jpg deleted file mode 100755 index 267c3da..0000000 Binary files a/DB/notes/photo_2019-01-21_05-09-12.jpg and /dev/null differ diff --git a/DB/notes/photo_2019-01-21_05-09-37.jpg b/DB/notes/photo_2019-01-21_05-09-37.jpg deleted file mode 100755 index b34f71c..0000000 Binary files a/DB/notes/photo_2019-01-21_05-09-37.jpg and /dev/null differ diff --git a/DB/overview.png b/DB/overview.png new file mode 100644 index 0000000..9924243 Binary files /dev/null and b/DB/overview.png differ diff --git a/DB/shema.sql b/DB/shema.sql new file mode 100644 index 0000000..c02af18 --- /dev/null +++ b/DB/shema.sql @@ -0,0 +1,100 @@ +-- Main Tables: + +CREATE TABLE File ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + Name TEXT NOT NULL, -- bis zu 65535 Zeichen; + Folder TEXT NOT NULL, -- bis zu 65535 Zeichen; Pfad = $Folder/$Name + MD5 VARCHAR(32), + FT_ID INTEGER DEFAULT 0, + Size INTEGER, -- KB (max 2TB anggebbar) + TTSync INTEGER DEFAULT 0 + ); + +CREATE TABLE VideoFile ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + F_ID INTEGER NOT NULL, + M_ID INTEGER, + Quality VARCHAR(100), + Name VARCHAR(100), + Duration TIME, + Bitrate INTEGER +); + +CREATE TABLE Universum ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + Name VARCHAR(100), + Cover INTEGER, + Description TEXT +); + +CREATE TABLE Movie ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + IMDb_ID INTEGER, + U_ID INTEGER, + Name VARCHAR(100), + Description TEXT, + Cover INTEGER, + FSK INTEGER, + Website VARCHAR(100), + Runtime TIME +); + +-- Relations, Additional Informations + +CREATE TABLE F_Type ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + Name TEXT NOT NULL, + Description TEXT NOT NULL +); + +CREATE TABLE M_Gren ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + M_ID INTEGER NOT NULL, + G_ID INTEGER NOT NULL +); + +CREATE TABLE M_Seasoninfo ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + F_ID INTEGER NOT NULL, + MAL_ID INTEGER, -- MyAnimeList ID + Staffeln INTEGER +); + +CREATE TABLE M_Title ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + F_ID INTEGER NOT NULL, + L_ID INTEGER NOT NULL, + Value VARCHAR(100) +); + +CREATE TABLE VF_Lang ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + L_ID INTEGER NOT NULL, + VF_ID INTEGER NOT NULL +); + +CREATE TABLE VF_Sub ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + L_ID INTEGER NOT NULL, + VF_ID INTEGER NOT NULL +); + +CREATE TABLE VF_Seasoninfo ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + VF_ID INTEGER NOT NULL, + Season INTEGER NOT NULL, + Episode INTEGER NOT NULL +); + +-- Help Tables + +CREATE TABLE Gren ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + Name VARCHAR(100) NOT NULL +); + +CREATE TABLE Language ( + ID INTEGER PRIMARY KEY AUTO_INCREMENT, + TLD VARCHAR(2), + Name VARCHAR(100) NOT NULL +); \ No newline at end of file diff --git a/src/etc/tt/global b/src/etc/tt/global new file mode 100644 index 0000000..3b7f908 --- /dev/null +++ b/src/etc/tt/global @@ -0,0 +1,6 @@ +#Global Config of the TerabyteTerminator Project + +dbname="tt_test" +dbhost="localhost" +dbuser="root" +dbpwd=""