Commit | Line | Data |
0009fa49 |
1 | -- |
2 | -- Created by SQL::Translator::Producer::SQLite |
169bb185 |
3 | -- Created on Thu Mar 23 11:13:18 2006 |
0009fa49 |
4 | -- |
5 | BEGIN TRANSACTION; |
6 | |
7 | -- |
80021def |
8 | -- Table: employees_positioned |
9 | -- |
10 | CREATE TABLE employees_positioned ( |
11 | employee_id INTEGER PRIMARY KEY NOT NULL, |
12 | position integer NOT NULL, |
169bb185 |
13 | group_id integer, |
80021def |
14 | name varchar(100) |
15 | ); |
16 | |
17 | -- |
8fcf21b3 |
18 | -- Table: serialized |
19 | -- |
20 | CREATE TABLE serialized ( |
21 | id INTEGER PRIMARY KEY NOT NULL, |
22 | serialized text NOT NULL |
23 | ); |
24 | |
25 | -- |
80021def |
26 | -- Table: cd_to_producer |
0009fa49 |
27 | -- |
80021def |
28 | CREATE TABLE cd_to_producer ( |
0009fa49 |
29 | cd integer NOT NULL, |
80021def |
30 | producer integer NOT NULL, |
31 | PRIMARY KEY (cd, producer) |
0009fa49 |
32 | ); |
33 | |
34 | -- |
8fcf21b3 |
35 | -- Table: liner_notes |
36 | -- |
37 | CREATE TABLE liner_notes ( |
38 | liner_id INTEGER PRIMARY KEY NOT NULL, |
39 | notes varchar(100) NOT NULL |
40 | ); |
41 | |
42 | -- |
80021def |
43 | -- Table: employees_adjacencylist |
0009fa49 |
44 | -- |
80021def |
45 | CREATE TABLE employees_adjacencylist ( |
46 | employee_id INTEGER PRIMARY KEY NOT NULL, |
47 | parent_id integer, |
48 | name varchar(100) |
0009fa49 |
49 | ); |
50 | |
51 | -- |
52 | -- Table: artist |
53 | -- |
54 | CREATE TABLE artist ( |
55 | artistid INTEGER PRIMARY KEY NOT NULL, |
80021def |
56 | name varchar(100) |
57 | ); |
58 | |
59 | -- |
60 | -- Table: employees_positioned_adjacencylist |
61 | -- |
62 | CREATE TABLE employees_positioned_adjacencylist ( |
63 | employee_id INTEGER PRIMARY KEY NOT NULL, |
64 | parent_id integer, |
65 | position integer NOT NULL, |
66 | name varchar(100) |
0009fa49 |
67 | ); |
68 | |
69 | -- |
70 | -- Table: self_ref_alias |
71 | -- |
72 | CREATE TABLE self_ref_alias ( |
73 | self_ref integer NOT NULL, |
887ce227 |
74 | alias integer NOT NULL, |
75 | PRIMARY KEY (self_ref, alias) |
0009fa49 |
76 | ); |
77 | |
78 | -- |
0009fa49 |
79 | -- Table: cd |
80 | -- |
81 | CREATE TABLE cd ( |
82 | cdid INTEGER PRIMARY KEY NOT NULL, |
83 | artist integer NOT NULL, |
8fcf21b3 |
84 | title varchar(100) NOT NULL, |
85 | year varchar(100) NOT NULL |
0009fa49 |
86 | ); |
87 | |
88 | -- |
0009fa49 |
89 | -- Table: track |
90 | -- |
91 | CREATE TABLE track ( |
92 | trackid INTEGER PRIMARY KEY NOT NULL, |
93 | cd integer NOT NULL, |
94 | position integer NOT NULL, |
8fcf21b3 |
95 | title varchar(100) NOT NULL |
0009fa49 |
96 | ); |
97 | |
98 | -- |
80021def |
99 | -- Table: treelike |
1c339d71 |
100 | -- |
80021def |
101 | CREATE TABLE treelike ( |
102 | id INTEGER PRIMARY KEY NOT NULL, |
103 | parent integer NOT NULL, |
8fcf21b3 |
104 | name varchar(100) NOT NULL |
0009fa49 |
105 | ); |
106 | |
107 | -- |
108 | -- Table: tags |
109 | -- |
110 | CREATE TABLE tags ( |
333cce60 |
111 | tagid INTEGER PRIMARY KEY NOT NULL, |
0009fa49 |
112 | cd integer NOT NULL, |
8fcf21b3 |
113 | tag varchar(100) NOT NULL |
0009fa49 |
114 | ); |
115 | |
887ce227 |
116 | -- |
117 | -- Table: self_ref |
118 | -- |
119 | CREATE TABLE self_ref ( |
120 | id INTEGER PRIMARY KEY NOT NULL, |
8fcf21b3 |
121 | name varchar(100) NOT NULL |
887ce227 |
122 | ); |
123 | |
9fcda149 |
124 | -- |
80021def |
125 | -- Table: twokeys |
9fcda149 |
126 | -- |
80021def |
127 | CREATE TABLE twokeys ( |
128 | artist integer NOT NULL, |
129 | cd integer NOT NULL, |
130 | PRIMARY KEY (artist, cd) |
131 | ); |
132 | |
133 | -- |
134 | -- Table: fourkeys |
135 | -- |
136 | CREATE TABLE fourkeys ( |
137 | foo integer NOT NULL, |
138 | bar integer NOT NULL, |
139 | hello integer NOT NULL, |
140 | goodbye integer NOT NULL, |
141 | PRIMARY KEY (foo, bar, hello, goodbye) |
142 | ); |
143 | |
144 | -- |
145 | -- Table: artist_undirected_map |
146 | -- |
147 | CREATE TABLE artist_undirected_map ( |
148 | id1 integer NOT NULL, |
149 | id2 integer NOT NULL, |
150 | PRIMARY KEY (id1, id2) |
151 | ); |
152 | |
153 | -- |
154 | -- Table: onekey |
155 | -- |
156 | CREATE TABLE onekey ( |
8fcf21b3 |
157 | id INTEGER PRIMARY KEY NOT NULL, |
80021def |
158 | artist integer NOT NULL, |
159 | cd integer NOT NULL |
160 | ); |
161 | |
162 | -- |
163 | -- Table: producer |
164 | -- |
165 | CREATE TABLE producer ( |
166 | producerid INTEGER PRIMARY KEY NOT NULL, |
8fcf21b3 |
167 | name varchar(100) NOT NULL |
9fcda149 |
168 | ); |
169 | |
0009fa49 |
170 | COMMIT; |