2 -- Created by SQL::Translator::Producer::SQLite
3 -- Created on Sun May 14 18:25:49 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
84 CREATE TABLE bookmark (
85 id INTEGER PRIMARY KEY NOT NULL,
93 trackid INTEGER PRIMARY KEY NOT NULL,
95 position integer NOT NULL,
96 title varchar(100) NOT NULL
102 CREATE TABLE self_ref (
103 id INTEGER PRIMARY KEY NOT NULL,
104 name varchar(100) NOT NULL
111 tagid INTEGER PRIMARY KEY NOT NULL,
113 tag varchar(100) NOT NULL
119 CREATE TABLE treelike (
120 id INTEGER PRIMARY KEY NOT NULL,
121 parent integer NOT NULL,
122 name varchar(100) NOT NULL
129 id INTEGER PRIMARY KEY NOT NULL,
137 CREATE TABLE twokeys (
138 artist integer NOT NULL,
140 PRIMARY KEY (artist, cd)
146 CREATE TABLE fourkeys (
147 foo integer NOT NULL,
148 bar integer NOT NULL,
149 hello integer NOT NULL,
150 goodbye integer NOT NULL,
151 PRIMARY KEY (foo, bar, hello, goodbye)
155 -- Table: artist_undirected_map
157 CREATE TABLE artist_undirected_map (
158 id1 integer NOT NULL,
159 id2 integer NOT NULL,
160 PRIMARY KEY (id1, id2)
166 CREATE TABLE onekey (
167 id INTEGER PRIMARY KEY NOT NULL,
168 artist integer NOT NULL,
175 CREATE TABLE producer (
176 producerid INTEGER PRIMARY KEY NOT NULL,
177 name varchar(100) NOT NULL
180 CREATE UNIQUE INDEX tktlnameunique_twokeytreelike on twokeytreelike (name);
181 CREATE UNIQUE INDEX artist_title_cd on cd (artist, title);