7 |
psql gnue << EOF |
psql gnue << EOF |
8 |
|
|
9 |
-- ============================================================================ |
-- ============================================================================ |
10 |
-- Class Repository |
-- Class Repository - TODO: Should be done by classrep |
11 |
-- ============================================================================ |
-- ============================================================================ |
12 |
|
|
13 |
create table gnue_module |
create table gnue_module |
27 |
|
|
28 |
create table gnue_property |
create table gnue_property |
29 |
( |
( |
30 |
gnue_id char (32), |
gnue_id char (32), |
31 |
gnue_class char (32), |
gnue_class char (32), |
32 |
gnue_module char (32), |
gnue_module char (32), |
33 |
gnue_name varchar (35), |
gnue_name varchar (35), |
34 |
gnue_type varchar (35), |
gnue_type varchar (35), |
35 |
gnue_comment varchar (70) |
gnue_length varchar (10), |
36 |
|
gnue_precision varchar (10), |
37 |
|
gnue_comment varchar (70) |
38 |
); |
); |
39 |
|
|
40 |
insert into gnue_module values |
insert into gnue_module values |
56 |
'GNU Enterprise Business Object Module' |
'GNU Enterprise Business Object Module' |
57 |
); |
); |
58 |
|
|
59 |
|
insert into gnue_property values |
60 |
|
( |
61 |
|
'00000000000000000000000000000011', |
62 |
|
'00000000000000000000000000000010', |
63 |
|
'00000000000000000000000000000000', |
64 |
|
'id', |
65 |
|
'string', |
66 |
|
'32', |
67 |
|
'fix', |
68 |
|
'Object ID' |
69 |
|
); |
70 |
|
|
71 |
|
insert into gnue_property values |
72 |
|
( |
73 |
|
'00000000000000000000000000000012', |
74 |
|
'00000000000000000000000000000010', |
75 |
|
'00000000000000000000000000000000', |
76 |
|
'name', |
77 |
|
'string', |
78 |
|
'35', |
79 |
|
'var', |
80 |
|
'Name' |
81 |
|
); |
82 |
|
|
83 |
|
insert into gnue_property values |
84 |
|
( |
85 |
|
'00000000000000000000000000000013', |
86 |
|
'00000000000000000000000000000010', |
87 |
|
'00000000000000000000000000000000', |
88 |
|
'comment', |
89 |
|
'string', |
90 |
|
'70', |
91 |
|
'var', |
92 |
|
'Comment' |
93 |
|
); |
94 |
|
|
95 |
-- ---------------------------------------------------------------------------- |
-- ---------------------------------------------------------------------------- |
96 |
-- Business Object Class |
-- Business Object Class |
97 |
-- ---------------------------------------------------------------------------- |
-- ---------------------------------------------------------------------------- |
104 |
'GNU Enterprise Business Object Class' |
'GNU Enterprise Business Object Class' |
105 |
); |
); |
106 |
|
|
107 |
|
insert into gnue_property values |
108 |
|
( |
109 |
|
'00000000000000000000000000000021', |
110 |
|
'00000000000000000000000000000020', |
111 |
|
'00000000000000000000000000000000', |
112 |
|
'id', |
113 |
|
'string', |
114 |
|
'32', |
115 |
|
'fix', |
116 |
|
'Object ID' |
117 |
|
); |
118 |
|
|
119 |
|
insert into gnue_property values |
120 |
|
( |
121 |
|
'00000000000000000000000000000022', |
122 |
|
'00000000000000000000000000000020', |
123 |
|
'00000000000000000000000000000000', |
124 |
|
'module', |
125 |
|
'string', |
126 |
|
'32', |
127 |
|
'fix', |
128 |
|
'Module that defined this class' |
129 |
|
); |
130 |
|
|
131 |
|
insert into gnue_property values |
132 |
|
( |
133 |
|
'00000000000000000000000000000023', |
134 |
|
'00000000000000000000000000000020', |
135 |
|
'00000000000000000000000000000000', |
136 |
|
'name', |
137 |
|
'string', |
138 |
|
'35', |
139 |
|
'var', |
140 |
|
'Classname without modulename' |
141 |
|
); |
142 |
|
|
143 |
|
insert into gnue_property values |
144 |
|
( |
145 |
|
'00000000000000000000000000000024', |
146 |
|
'00000000000000000000000000000020', |
147 |
|
'00000000000000000000000000000000', |
148 |
|
'comment', |
149 |
|
'string', |
150 |
|
'70', |
151 |
|
'var', |
152 |
|
'Comment' |
153 |
|
); |
154 |
|
|
155 |
-- ---------------------------------------------------------------------------- |
-- ---------------------------------------------------------------------------- |
156 |
-- Business Object Property |
-- Business Object Property |
157 |
-- ---------------------------------------------------------------------------- |
-- ---------------------------------------------------------------------------- |
164 |
'GNU Enterprise Business Object Property' |
'GNU Enterprise Business Object Property' |
165 |
); |
); |
166 |
|
|
167 |
|
insert into gnue_property values |
168 |
|
( |
169 |
|
'00000000000000000000000000000031', |
170 |
|
'00000000000000000000000000000030', |
171 |
|
'00000000000000000000000000000000', |
172 |
|
'id', |
173 |
|
'string', |
174 |
|
'32', |
175 |
|
'fix', |
176 |
|
'Object ID' |
177 |
|
); |
178 |
|
|
179 |
|
insert into gnue_property values |
180 |
|
( |
181 |
|
'00000000000000000000000000000032', |
182 |
|
'00000000000000000000000000000030', |
183 |
|
'00000000000000000000000000000000', |
184 |
|
'class', |
185 |
|
'string', |
186 |
|
'32', |
187 |
|
'fix', |
188 |
|
'Class the property belongs to' |
189 |
|
); |
190 |
|
|
191 |
|
insert into gnue_property values |
192 |
|
( |
193 |
|
'00000000000000000000000000000033', |
194 |
|
'00000000000000000000000000000030', |
195 |
|
'00000000000000000000000000000000', |
196 |
|
'module', |
197 |
|
'string', |
198 |
|
'32', |
199 |
|
'fix', |
200 |
|
'Module that defined this property' |
201 |
|
); |
202 |
|
|
203 |
|
insert into gnue_property values |
204 |
|
( |
205 |
|
'00000000000000000000000000000034', |
206 |
|
'00000000000000000000000000000030', |
207 |
|
'00000000000000000000000000000000', |
208 |
|
'name', |
209 |
|
'string', |
210 |
|
'35', |
211 |
|
'var', |
212 |
|
'Propertyname without modulename' |
213 |
|
); |
214 |
|
|
215 |
|
insert into gnue_property values |
216 |
|
( |
217 |
|
'00000000000000000000000000000035', |
218 |
|
'00000000000000000000000000000030', |
219 |
|
'00000000000000000000000000000000', |
220 |
|
'type', |
221 |
|
'string', |
222 |
|
'35', |
223 |
|
'var', |
224 |
|
'Data type' |
225 |
|
); |
226 |
|
|
227 |
|
insert into gnue_property values |
228 |
|
( |
229 |
|
'00000000000000000000000000000036', |
230 |
|
'00000000000000000000000000000030', |
231 |
|
'00000000000000000000000000000000', |
232 |
|
'length', |
233 |
|
'string', |
234 |
|
'10', |
235 |
|
'var', |
236 |
|
'Data length' |
237 |
|
); |
238 |
|
|
239 |
|
insert into gnue_property values |
240 |
|
( |
241 |
|
'00000000000000000000000000000037', |
242 |
|
'00000000000000000000000000000030', |
243 |
|
'00000000000000000000000000000000', |
244 |
|
'precision', |
245 |
|
'string', |
246 |
|
'10', |
247 |
|
'var', |
248 |
|
'Data precision' |
249 |
|
); |
250 |
|
|
251 |
|
insert into gnue_property values |
252 |
|
( |
253 |
|
'00000000000000000000000000000038', |
254 |
|
'00000000000000000000000000000030', |
255 |
|
'00000000000000000000000000000000', |
256 |
|
'comment', |
257 |
|
'string', |
258 |
|
'70', |
259 |
|
'var', |
260 |
|
'Comment' |
261 |
|
); |
262 |
|
|
263 |
-- ============================================================================ |
-- ============================================================================ |
264 |
-- Authentication and Trigger Test Stuff |
-- Authentication and Trigger Test Stuff - TODO: Remove this |
265 |
-- ============================================================================ |
-- ============================================================================ |
266 |
|
|
267 |
create table appserver_users |
create table appserver_users |
290 |
'person:checkAreaRichness','print "standard"'); |
'person:checkAreaRichness','print "standard"'); |
291 |
|
|
292 |
-- ============================================================================ |
-- ============================================================================ |
293 |
-- Address Module |
-- Address Module - TODO: Should be imported via XML into Appserver |
294 |
-- ============================================================================ |
-- ============================================================================ |
295 |
|
|
296 |
insert into gnue_module values |
insert into gnue_module values |
312 |
'Person' |
'Person' |
313 |
); |
); |
314 |
|
|
315 |
|
insert into gnue_property values |
316 |
|
( |
317 |
|
'00000000000000000000000000001011', |
318 |
|
'00000000000000000000000000001010', |
319 |
|
'00000000000000000000000000000000', |
320 |
|
'id', |
321 |
|
'string', |
322 |
|
'32', |
323 |
|
'fix', |
324 |
|
'Object ID' |
325 |
|
); |
326 |
|
|
327 |
|
insert into gnue_property values |
328 |
|
( |
329 |
|
'00000000000000000000000000001011', |
330 |
|
'00000000000000000000000000001010', |
331 |
|
'00000000000000000000000000001000', |
332 |
|
'name', |
333 |
|
'string', |
334 |
|
'35', |
335 |
|
'var', |
336 |
|
'Name of the person' |
337 |
|
); |
338 |
|
|
339 |
|
insert into gnue_property values |
340 |
|
( |
341 |
|
'00000000000000000000000000001011', |
342 |
|
'00000000000000000000000000001010', |
343 |
|
'00000000000000000000000000001000', |
344 |
|
'street', |
345 |
|
'string', |
346 |
|
'35', |
347 |
|
'var', |
348 |
|
'Street where the person lives' |
349 |
|
); |
350 |
|
|
351 |
|
insert into gnue_property values |
352 |
|
( |
353 |
|
'00000000000000000000000000001011', |
354 |
|
'00000000000000000000000000001010', |
355 |
|
'00000000000000000000000000001000', |
356 |
|
'zip', |
357 |
|
'string', |
358 |
|
'35', |
359 |
|
'var', |
360 |
|
'Zip code of the city where the person lives' |
361 |
|
); |
362 |
|
|
363 |
|
insert into gnue_property values |
364 |
|
( |
365 |
|
'00000000000000000000000000001011', |
366 |
|
'00000000000000000000000000001010', |
367 |
|
'00000000000000000000000000001000', |
368 |
|
'city', |
369 |
|
'string', |
370 |
|
'35', |
371 |
|
'var', |
372 |
|
'City where the person lives' |
373 |
|
); |
374 |
|
|
375 |
|
-- TODO: Should be done by appserver upon import of schema |
376 |
|
|
377 |
create table address_person |
create table address_person |
378 |
( |
( |
379 |
gnue_id char (32), |
gnue_id char (32), |
392 |
'Gnutown' |
'Gnutown' |
393 |
); |
); |
394 |
|
|
395 |
|
insert into address_person values |
396 |
|
( |
397 |
|
'00000000000000000000000000001101', |
398 |
|
'Mr. Spock', |
399 |
|
'Vulc Lane 1', |
400 |
|
'4711', |
401 |
|
'Vulcane' |
402 |
|
); |
403 |
|
|
404 |
EOF |
EOF |