2 -- Created by SQL::Translator::Producer::SQLite
3 -- Created on Wed Apr 26 03:18:22 2006
10 CREATE TABLE employee (
11 employee_id INTEGER PRIMARY KEY NOT NULL,
12 position integer NOT NULL,
20 CREATE TABLE serialized (
21 id INTEGER PRIMARY KEY NOT NULL,
22 serialized text NOT NULL
28 CREATE TABLE liner_notes (
29 liner_id INTEGER PRIMARY KEY NOT NULL,
30 notes varchar(100) NOT NULL
34 -- Table: cd_to_producer
36 CREATE TABLE cd_to_producer (
38 producer integer NOT NULL,
39 PRIMARY KEY (cd, producer)
46 artistid INTEGER PRIMARY KEY NOT NULL,
51 -- Table: twokeytreelike
53 CREATE TABLE twokeytreelike (
56 parent1 integer NOT NULL,
57 parent2 integer NOT NULL,
58 name varchar(100) NOT NULL,
59 PRIMARY KEY (id1, id2)
63 -- Table: self_ref_alias
65 CREATE TABLE self_ref_alias (
66 self_ref integer NOT NULL,
67 alias integer NOT NULL,
68 PRIMARY KEY (self_ref, alias)
75 cdid INTEGER PRIMARY KEY NOT NULL,
76 artist integer NOT NULL,
77 title varchar(100) NOT NULL,
78 year varchar(100) NOT NULL
85 trackid INTEGER PRIMARY KEY NOT NULL,
87 position integer NOT NULL,
88 title varchar(100) NOT NULL
94 CREATE TABLE self_ref (
95 id INTEGER PRIMARY KEY NOT NULL,
96 name varchar(100) NOT NULL
102 CREATE TABLE treelike (
103 id INTEGER PRIMARY KEY NOT NULL,
104 parent integer NOT NULL,
105 name varchar(100) NOT NULL
112 tagid INTEGER PRIMARY KEY NOT NULL,
114 tag varchar(100) NOT NULL
121 id INTEGER PRIMARY KEY NOT NULL,
122 starts_at datetime NOT NULL
128 CREATE TABLE twokeys (
129 artist integer NOT NULL,
131 PRIMARY KEY (artist, cd)
137 CREATE TABLE fourkeys (
138 foo integer NOT NULL,
139 bar integer NOT NULL,
140 hello integer NOT NULL,
141 goodbye integer NOT NULL,
142 PRIMARY KEY (foo, bar, hello, goodbye)
146 -- Table: artist_undirected_map
148 CREATE TABLE artist_undirected_map (
149 id1 integer NOT NULL,
150 id2 integer NOT NULL,
151 PRIMARY KEY (id1, id2)
157 CREATE TABLE onekey (
158 id INTEGER PRIMARY KEY NOT NULL,
159 artist integer NOT NULL,
166 CREATE TABLE producer (
167 producerid INTEGER PRIMARY KEY NOT NULL,
168 name varchar(100) NOT NULL
171 CREATE UNIQUE INDEX position_group_employee on employee (position, group_id);
172 CREATE UNIQUE INDEX tktlnameunique_twokeytreelike on twokeytreelike (name);
173 CREATE UNIQUE INDEX artist_title_cd on cd (artist, title);