Commit | Line | Data |
0009fa49 |
1 | -- |
2 | -- Created by SQL::Translator::Producer::SQLite |
4e298a80 |
3 | -- Created on Fri Mar 24 15:47:00 2006 |
0009fa49 |
4 | -- |
5 | BEGIN TRANSACTION; |
6 | |
7 | -- |
4e298a80 |
8 | -- Table: employees |
9 | -- |
10 | CREATE TABLE employees ( |
11 | employee_id INTEGER PRIMARY KEY NOT NULL, |
12 | position integer NOT NULL, |
13 | group_id integer, |
14 | name varchar(100) |
15 | ); |
16 | |
17 | -- |
0a298c73 |
18 | -- Table: serialized |
19 | -- |
20 | CREATE TABLE serialized ( |
21 | id INTEGER PRIMARY KEY NOT NULL, |
22 | serialized text NOT NULL |
23 | ); |
24 | |
25 | -- |
4e298a80 |
26 | -- Table: cd_to_producer |
0009fa49 |
27 | -- |
4e298a80 |
28 | CREATE TABLE cd_to_producer ( |
29 | cd integer NOT NULL, |
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 | -- |
0009fa49 |
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 | -- |
0a298c73 |
88 | -- Table: treelike |
887ce227 |
89 | -- |
0a298c73 |
90 | CREATE TABLE treelike ( |
887ce227 |
91 | id INTEGER PRIMARY KEY NOT NULL, |
0a298c73 |
92 | parent integer NOT NULL, |
8fcf21b3 |
93 | name varchar(100) NOT NULL |
887ce227 |
94 | ); |
95 | |
9fcda149 |
96 | -- |
4e298a80 |
97 | -- Table: tags |
9fcda149 |
98 | -- |
4e298a80 |
99 | CREATE TABLE tags ( |
100 | tagid INTEGER PRIMARY KEY NOT NULL, |
80021def |
101 | cd integer NOT NULL, |
4e298a80 |
102 | tag varchar(100) NOT NULL |
80021def |
103 | ); |
104 | |
105 | -- |
4e298a80 |
106 | -- Table: twokeys |
1e3ff014 |
107 | -- |
4e298a80 |
108 | CREATE TABLE twokeys ( |
109 | artist integer NOT NULL, |
110 | cd integer NOT NULL, |
111 | PRIMARY KEY (artist, cd) |
1e3ff014 |
112 | ); |
113 | |
114 | -- |
80021def |
115 | -- Table: fourkeys |
116 | -- |
117 | CREATE TABLE fourkeys ( |
118 | foo integer NOT NULL, |
119 | bar integer NOT NULL, |
120 | hello integer NOT NULL, |
121 | goodbye integer NOT NULL, |
122 | PRIMARY KEY (foo, bar, hello, goodbye) |
123 | ); |
124 | |
125 | -- |
126 | -- Table: artist_undirected_map |
127 | -- |
128 | CREATE TABLE artist_undirected_map ( |
129 | id1 integer NOT NULL, |
130 | id2 integer NOT NULL, |
131 | PRIMARY KEY (id1, id2) |
132 | ); |
133 | |
134 | -- |
0a298c73 |
135 | -- Table: producer |
136 | -- |
137 | CREATE TABLE producer ( |
138 | producerid INTEGER PRIMARY KEY NOT NULL, |
139 | name varchar(100) NOT NULL |
140 | ); |
141 | |
142 | -- |
80021def |
143 | -- Table: onekey |
144 | -- |
145 | CREATE TABLE onekey ( |
8fcf21b3 |
146 | id INTEGER PRIMARY KEY NOT NULL, |
80021def |
147 | artist integer NOT NULL, |
148 | cd integer NOT NULL |
149 | ); |
150 | |
0009fa49 |
151 | COMMIT; |