2 -- Created by SQL::Translator::Producer::SQLite
3 -- Created on Sun Jul 23 00:23:30 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: fourkeys_to_twokeys
65 CREATE TABLE fourkeys_to_twokeys (
66 f_foo integer NOT NULL,
67 f_bar integer NOT NULL,
68 f_hello integer NOT NULL,
69 f_goodbye integer NOT NULL,
70 t_artist integer NOT NULL,
71 t_cd integer NOT NULL,
72 autopilot character NOT NULL,
73 PRIMARY KEY (f_foo, f_bar, f_hello, f_goodbye, t_artist, t_cd)
77 -- Table: self_ref_alias
79 CREATE TABLE self_ref_alias (
80 self_ref integer NOT NULL,
81 alias integer NOT NULL,
82 PRIMARY KEY (self_ref, alias)
89 cdid INTEGER PRIMARY KEY NOT NULL,
90 artist integer NOT NULL,
91 title varchar(100) NOT NULL,
92 year varchar(100) NOT NULL
98 CREATE TABLE bookmark (
99 id INTEGER PRIMARY KEY NOT NULL,
100 link integer NOT NULL
107 trackid INTEGER PRIMARY KEY NOT NULL,
109 position integer NOT NULL,
110 title varchar(100) NOT NULL
116 CREATE TABLE self_ref (
117 id INTEGER PRIMARY KEY NOT NULL,
118 name varchar(100) NOT NULL
125 id INTEGER PRIMARY KEY NOT NULL,
134 tagid INTEGER PRIMARY KEY NOT NULL,
136 tag varchar(100) NOT NULL
142 CREATE TABLE treelike (
143 id INTEGER PRIMARY KEY NOT NULL,
144 parent integer NOT NULL,
145 name varchar(100) NOT NULL
152 id INTEGER PRIMARY KEY NOT NULL,
153 starts_at datetime NOT NULL,
154 created_on timestamp NOT NULL
160 CREATE TABLE twokeys (
161 artist integer NOT NULL,
163 PRIMARY KEY (artist, cd)
167 -- Table: noprimarykey
169 CREATE TABLE noprimarykey (
170 foo integer NOT NULL,
171 bar integer NOT NULL,
178 CREATE TABLE fourkeys (
179 foo integer NOT NULL,
180 bar integer NOT NULL,
181 hello integer NOT NULL,
182 goodbye integer NOT NULL,
183 sensors character NOT NULL,
184 PRIMARY KEY (foo, bar, hello, goodbye)
188 -- Table: artist_undirected_map
190 CREATE TABLE artist_undirected_map (
191 id1 integer NOT NULL,
192 id2 integer NOT NULL,
193 PRIMARY KEY (id1, id2)
199 CREATE TABLE producer (
200 producerid INTEGER PRIMARY KEY NOT NULL,
201 name varchar(100) NOT NULL
207 CREATE TABLE onekey (
208 id INTEGER PRIMARY KEY NOT NULL,
209 artist integer NOT NULL,
213 CREATE UNIQUE INDEX tktlnameunique_twokeytreelike on twokeytreelike (name);
214 CREATE UNIQUE INDEX cd_artist_title_cd on cd (artist, title);
215 CREATE UNIQUE INDEX track_cd_position_track on track (cd, position);
216 CREATE UNIQUE INDEX track_cd_title_track on track (cd, title);
217 CREATE UNIQUE INDEX foo_bar_noprimarykey on noprimarykey (foo, bar);
218 CREATE UNIQUE INDEX prod_name_producer on producer (name);