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