2 -- Created by SQL::Translator::Producer::SQLite
3 -- Created on Wed Apr 19 18:32:39 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
120 CREATE TABLE twokeys (
121 artist integer NOT NULL,
123 PRIMARY KEY (artist, cd)
129 CREATE TABLE fourkeys (
130 foo integer NOT NULL,
131 bar integer NOT NULL,
132 hello integer NOT NULL,
133 goodbye integer NOT NULL,
134 PRIMARY KEY (foo, bar, hello, goodbye)
138 -- Table: artist_undirected_map
140 CREATE TABLE artist_undirected_map (
141 id1 integer NOT NULL,
142 id2 integer NOT NULL,
143 PRIMARY KEY (id1, id2)
149 CREATE TABLE onekey (
150 id INTEGER PRIMARY KEY NOT NULL,
151 artist integer NOT NULL,
158 CREATE TABLE producer (
159 producerid INTEGER PRIMARY KEY NOT NULL,
160 name varchar(100) NOT NULL
163 CREATE UNIQUE INDEX position_group_employee on employee (position, group_id);
164 CREATE UNIQUE INDEX tktlnameunique_twokeytreelike on twokeytreelike (name);
165 CREATE UNIQUE INDEX artist_title_cd on cd (artist, title);