2 -- Created by SQL::Translator::Producer::SQLite
3 -- Created on Tue Aug 8 01:53:20 2006
10 CREATE TABLE employee (
11 employee_id INTEGER PRIMARY KEY NOT NULL,
12 position integer NOT NULL,
21 CREATE TABLE serialized (
22 id INTEGER PRIMARY KEY NOT NULL,
23 serialized text NOT NULL
29 CREATE TABLE liner_notes (
30 liner_id INTEGER PRIMARY KEY NOT NULL,
31 notes varchar(100) NOT NULL
35 -- Table: cd_to_producer
37 CREATE TABLE cd_to_producer (
39 producer integer NOT NULL,
40 PRIMARY KEY (cd, producer)
47 artistid INTEGER PRIMARY KEY NOT NULL,
52 -- Table: twokeytreelike
54 CREATE TABLE twokeytreelike (
57 parent1 integer NOT NULL,
58 parent2 integer NOT NULL,
59 name varchar(100) NOT NULL,
60 PRIMARY KEY (id1, id2)
64 -- Table: fourkeys_to_twokeys
66 CREATE TABLE fourkeys_to_twokeys (
67 f_foo integer NOT NULL,
68 f_bar integer NOT NULL,
69 f_hello integer NOT NULL,
70 f_goodbye integer NOT NULL,
71 t_artist integer NOT NULL,
72 t_cd integer NOT NULL,
73 autopilot character NOT NULL,
74 PRIMARY KEY (f_foo, f_bar, f_hello, f_goodbye, t_artist, t_cd)
78 -- Table: self_ref_alias
80 CREATE TABLE self_ref_alias (
81 self_ref integer NOT NULL,
82 alias integer NOT NULL,
83 PRIMARY KEY (self_ref, alias)
90 cdid INTEGER PRIMARY KEY NOT NULL,
91 artist integer NOT NULL,
92 title varchar(100) NOT NULL,
93 year varchar(100) NOT NULL
99 CREATE TABLE bookmark (
100 id INTEGER PRIMARY KEY NOT NULL,
101 link integer NOT NULL
108 trackid INTEGER PRIMARY KEY NOT NULL,
110 position integer NOT NULL,
111 title varchar(100) NOT NULL,
112 last_updated_on datetime NULL
118 CREATE TABLE self_ref (
119 id INTEGER PRIMARY KEY NOT NULL,
120 name varchar(100) NOT NULL
127 id INTEGER PRIMARY KEY NOT NULL,
133 -- Table: file_columns
135 CREATE TABLE file_columns (
136 id INTEGER PRIMARY KEY NOT NULL,
144 tagid INTEGER PRIMARY KEY NOT NULL,
146 tag varchar(100) NOT NULL
152 CREATE TABLE treelike (
153 id INTEGER PRIMARY KEY NOT NULL,
155 name varchar(100) NOT NULL
162 id INTEGER PRIMARY KEY NOT NULL,
163 starts_at datetime NOT NULL,
164 created_on timestamp NOT NULL
170 CREATE TABLE twokeys (
171 artist integer NOT NULL,
173 PRIMARY KEY (artist, cd)
177 -- Table: noprimarykey
179 CREATE TABLE noprimarykey (
180 foo integer NOT NULL,
181 bar integer NOT NULL,
188 CREATE TABLE fourkeys (
189 foo integer NOT NULL,
190 bar integer NOT NULL,
191 hello integer NOT NULL,
192 goodbye integer NOT NULL,
193 sensors character NOT NULL,
194 PRIMARY KEY (foo, bar, hello, goodbye)
198 -- Table: artist_undirected_map
200 CREATE TABLE artist_undirected_map (
201 id1 integer NOT NULL,
202 id2 integer NOT NULL,
203 PRIMARY KEY (id1, id2)
209 CREATE TABLE producer (
210 producerid INTEGER PRIMARY KEY NOT NULL,
211 name varchar(100) NOT NULL
217 CREATE TABLE onekey (
218 id INTEGER PRIMARY KEY NOT NULL,
219 artist integer NOT NULL,
224 -- Table: typed_object
226 CREATE TABLE typed_object (
227 objectid INTEGER PRIMARY KEY NOT NULL,
228 type VARCHAR(100) NOT NULL,
235 CREATE TABLE collection (
236 collectionid INTEGER PRIMARY KEY NOT NULL,
241 -- Table: collection_object
243 CREATE TABLE collection_object (
244 collection INTEGER NOT NULL,
245 object INTEGER NOT NULL
251 CREATE TABLE owners (
252 ownerid INTEGER PRIMARY KEY NOT NULL,
260 id INTEGER PRIMARY KEY NOT NULL,
267 CREATE UNIQUE INDEX tktlnameunique_twokeytreelike on twokeytreelike (name);
268 CREATE UNIQUE INDEX cd_artist_title_cd on cd (artist, title);
269 CREATE UNIQUE INDEX track_cd_position_track on track (cd, position);
270 CREATE UNIQUE INDEX track_cd_title_track on track (cd, title);
271 CREATE UNIQUE INDEX foo_bar_noprimarykey on noprimarykey (foo, bar);
272 CREATE UNIQUE INDEX prod_name_producer on producer (name);