summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-30 21:02:30 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-30 22:33:22 +0100
commitf8f3ac8e1b80ac9263940ace3028467c636e6004 (patch)
treea7b59bb27a5f77e801263d363540fb93000651d4
parentd141e89e7d3c7120ee163a0e01272fabe4cb5501 (diff)
Added init.sql.
-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);