diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-09-19 19:24:42 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-09-19 19:24:42 +0200 |
commit | a4d551644802ee3cf634a2315e1f8dc9dca6c046 (patch) | |
tree | 7f8c571b30890b9ac6593f285158b75b511452b4 | |
parent | c91336dce1435e09a980d7a8838fa93658cd5ded (diff) |
-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); |