diff options
Diffstat (limited to 'init.sql')
-rw-r--r-- | init.sql | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/init.sql b/init.sql new file mode 100644 index 0000000..58f1112 --- /dev/null +++ b/init.sql @@ -0,0 +1,19 @@ +CREATE TABLE artists ( + id INTEGER PRIMARY KEY, + name VARCHAR); + +CREATE TABLE albums ( + id INTEGER PRIMARY KEY, + artist_id INTEGER, + name VARCHAR, + tracks INTEGER); + +CREATE TABLE tracks ( + id INTEGER PRIMARY KEY, + artist_id INTEGER, + album_id INTEGER, + name VARCHAR, + length INTEGER, + num INTEGER, + file_name VARCHAR, + file_index INTEGER); |