summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-09-19 19:24:42 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-09-19 19:24:42 +0200
commita4d551644802ee3cf634a2315e1f8dc9dca6c046 (patch)
tree7f8c571b30890b9ac6593f285158b75b511452b4
parentc91336dce1435e09a980d7a8838fa93658cd5ded (diff)
Database schema.HEADmaster
-rw-r--r--init.sql19
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);