This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bank.sql.in
1779 lines (1679 loc) · 195 KB
/
bank.sql.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
CREATE TABLE g_object (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_association character varying(5) DEFAULT 'False',
g_parent character varying(@VARCHAR_SIZE@),
g_child character varying(@VARCHAR_SIZE@),
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_object_name_idx ON g_object (g_name);
CREATE INDEX g_object_deleted_idx ON g_object (g_deleted);
CREATE INDEX g_object_txnid_idx ON g_object (g_transaction_id);
CREATE TABLE g_object_log (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_association character varying(5) DEFAULT 'False',
g_parent character varying(@VARCHAR_SIZE@),
g_child character varying(@VARCHAR_SIZE@),
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_attribute (
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_data_type character varying(@VARCHAR_SIZE@),
g_primary_key character varying(5) DEFAULT 'False',
g_required character varying(5) DEFAULT 'False',
g_fixed character varying(5) DEFAULT 'False',
g_values character varying(@VARCHAR_SIZE@),
g_default_value character varying(@VARCHAR_SIZE@),
g_sequence integer,
g_hidden character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_attribute_object_idx ON g_attribute (g_object);
CREATE INDEX g_attribute_name_idx ON g_attribute (g_name);
CREATE INDEX g_attribute_deleted_idx ON g_attribute (g_deleted);
CREATE INDEX g_attribute_txnid_idx ON g_attribute (g_transaction_id);
CREATE TABLE g_attribute_log (
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_data_type character varying(@VARCHAR_SIZE@),
g_primary_key character varying(5) DEFAULT 'False',
g_required character varying(5) DEFAULT 'False',
g_fixed character varying(5) DEFAULT 'False',
g_values character varying(@VARCHAR_SIZE@),
g_default_value character varying(@VARCHAR_SIZE@),
g_sequence integer,
g_hidden character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_action (
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_display character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_action_object_idx ON g_action (g_object);
CREATE INDEX g_action_name_idx ON g_action (g_name);
CREATE INDEX g_action_deleted_idx ON g_action (g_deleted);
CREATE INDEX g_action_txnid_idx ON g_action (g_transaction_id);
CREATE TABLE g_action_log (
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_display character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_transaction (
g_id integer NOT NULL,
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_action character varying(@VARCHAR_SIZE@) NOT NULL,
g_actor character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_child character varying(@VARCHAR_SIZE@),
g_count integer,
g_details character varying(@VARCHAR_SIZE@),
g_description character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_project character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_job_id character varying(@VARCHAR_SIZE@),
g_amount double precision,
g_delta double precision,
g_account integer,
g_allocation integer
);
CREATE INDEX g_transaction_id_idx ON g_transaction (g_id);
CREATE INDEX g_transaction_created_idx ON g_transaction (g_creation_time);
CREATE INDEX g_transaction_account_idx ON g_transaction (g_account);
CREATE INDEX g_transaction_delta_idx ON g_transaction (g_delta);
CREATE INDEX g_transaction_deleted_idx ON g_transaction (g_deleted);
CREATE INDEX g_transaction_txnid_idx ON g_transaction (g_transaction_id);
CREATE TABLE g_transaction_log (
g_id integer NOT NULL,
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_action character varying(@VARCHAR_SIZE@) NOT NULL,
g_actor character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_child character varying(@VARCHAR_SIZE@),
g_count integer,
g_details character varying(@VARCHAR_SIZE@),
g_description character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_project character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_job_id character varying(@VARCHAR_SIZE@),
g_amount double precision,
g_delta double precision,
g_account integer,
g_allocation integer
);
CREATE TABLE g_system (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_version character varying(@VARCHAR_SIZE@) NOT NULL,
g_description character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_organization character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_system_name_idx ON g_system (g_name);
CREATE INDEX g_system_deleted_idx ON g_system (g_deleted);
CREATE INDEX g_system_txnid_idx ON g_system (g_transaction_id);
CREATE TABLE g_system_log (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_version character varying(@VARCHAR_SIZE@) NOT NULL,
g_description character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_organization character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_user (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_active character varying(5) DEFAULT 'True',
g_common_name character varying(@VARCHAR_SIZE@),
g_phone_number character varying(@VARCHAR_SIZE@),
g_email_address character varying(@VARCHAR_SIZE@),
g_default_project character varying(@VARCHAR_SIZE@),
g_organization character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_user_name_idx ON g_user (g_name);
CREATE INDEX g_user_deleted_idx ON g_user (g_deleted);
CREATE INDEX g_user_txnid_idx ON g_user (g_transaction_id);
CREATE TABLE g_user_log (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_description character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_active character varying(5) DEFAULT 'True',
g_common_name character varying(@VARCHAR_SIZE@),
g_phone_number character varying(@VARCHAR_SIZE@),
g_email_address character varying(@VARCHAR_SIZE@),
g_default_project character varying(@VARCHAR_SIZE@),
g_organization character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_role (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_description character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_role_name_idx ON g_role (g_name);
CREATE INDEX g_role_deleted_idx ON g_role (g_deleted);
CREATE INDEX g_role_txnid_idx ON g_role (g_transaction_id);
CREATE TABLE g_role_log (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_description character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_role_action (
g_role character varying(@VARCHAR_SIZE@) NOT NULL,
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_instance character varying(@VARCHAR_SIZE@) NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_role_action_role_idx ON g_role_action (g_role);
CREATE INDEX g_role_action_name_idx ON g_role_action (g_name);
CREATE INDEX g_role_action_deleted_idx ON g_role_action (g_deleted);
CREATE INDEX g_role_action_txnid_idx ON g_role_action (g_transaction_id);
CREATE TABLE g_role_action_log (
g_role character varying(@VARCHAR_SIZE@) NOT NULL,
g_object character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_instance character varying(@VARCHAR_SIZE@) NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_role_user (
g_role character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_role_user_role_idx ON g_role_user (g_role);
CREATE INDEX g_role_user_name_idx ON g_role_user (g_name);
CREATE INDEX g_role_user_deleted_idx ON g_role_user (g_deleted);
CREATE INDEX g_role_user_txnid_idx ON g_role_user (g_transaction_id);
CREATE TABLE g_role_user_log (
g_role character varying(@VARCHAR_SIZE@) NOT NULL,
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_password (
g_user character varying(@VARCHAR_SIZE@) NOT NULL,
g_password character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE INDEX g_password_user_idx ON g_password (g_user);
CREATE INDEX g_password_deleted_idx ON g_password (g_deleted);
CREATE INDEX g_password_txnid_idx ON g_password (g_transaction_id);
CREATE TABLE g_password_log (
g_user character varying(@VARCHAR_SIZE@) NOT NULL,
g_password character varying(@VARCHAR_SIZE@),
g_deleted character varying(5) DEFAULT 'False',
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL
);
CREATE TABLE g_key_generator (
g_name character varying(@VARCHAR_SIZE@) NOT NULL,
g_next_id integer NOT NULL
);
CREATE INDEX g_key_generator_name_idx ON g_key_generator (g_name);
CREATE TABLE g_undo (
g_request_id integer NOT NULL
);
CREATE TABLE g_organization (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_host character varying(@VARCHAR_SIZE@),
g_port character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_organization_name_idx ON g_organization (g_name);
CREATE INDEX g_organization_deleted_idx ON g_organization (g_deleted);
CREATE INDEX g_organization_txnid_idx ON g_organization (g_transaction_id);
CREATE TABLE g_organization_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_host character varying(@VARCHAR_SIZE@),
g_port character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_project (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True',
g_organization character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_project_name_idx ON g_project (g_name);
CREATE INDEX g_project_deleted_idx ON g_project (g_deleted);
CREATE INDEX g_project_txnid_idx ON g_project (g_transaction_id);
CREATE TABLE g_project_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True',
g_organization character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_machine (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True',
g_architecture character varying(@VARCHAR_SIZE@),
g_operating_system character varying(@VARCHAR_SIZE@),
g_organization character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_machine_name_idx ON g_machine (g_name);
CREATE INDEX g_machine_deleted_idx ON g_machine (g_deleted);
CREATE INDEX g_machine_txnid_idx ON g_machine (g_transaction_id);
CREATE TABLE g_machine_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True',
g_architecture character varying(@VARCHAR_SIZE@),
g_operating_system character varying(@VARCHAR_SIZE@),
g_organization character varying(@VARCHAR_SIZE@),
g_special character varying(5) DEFAULT 'False',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_project_user (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_project character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True',
g_admin character varying(5) DEFAULT 'False'
);
CREATE INDEX g_project_user_project_idx ON g_project_user (g_project);
CREATE INDEX g_project_user_name_idx ON g_project_user (g_name);
CREATE INDEX g_project_user_deleted_idx ON g_project_user (g_deleted);
CREATE INDEX g_project_user_txnid_idx ON g_project_user (g_transaction_id);
CREATE TABLE g_project_user_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_project character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True',
g_admin character varying(5) DEFAULT 'False'
);
CREATE TABLE g_project_machine (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_project character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True'
);
CREATE INDEX g_project_machine_project ON g_project_machine (g_project);
CREATE INDEX g_project_machine_name_idx ON g_project_machine (g_name);
CREATE INDEX g_project_machine_deleted_idx ON g_project_machine (g_deleted);
CREATE INDEX g_project_machine_txnid_idx ON g_project_machine (g_transaction_id);
CREATE TABLE g_project_machine_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_project character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_active character varying(5) DEFAULT 'True'
);
CREATE TABLE g_account (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_name character varying(@VARCHAR_SIZE@),
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_account_id_idx ON g_account (g_id);
CREATE INDEX g_account_deleted_idx ON g_account (g_deleted);
CREATE INDEX g_account_txnid_idx ON g_account (g_transaction_id);
CREATE TABLE g_account_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_name character varying(@VARCHAR_SIZE@),
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_account_project (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_access character varying(5) DEFAULT 'True'
);
CREATE INDEX g_account_project_account_idx ON g_account_project (g_account);
CREATE INDEX g_account_project_name_idx ON g_account_project (g_name);
CREATE INDEX g_account_project_deleted_idx ON g_account_project (g_deleted);
CREATE INDEX g_account_project_txnid_idx ON g_account_project (g_transaction_id);
CREATE TABLE g_account_project_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_access character varying(5) DEFAULT 'True'
);
CREATE TABLE g_account_user (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_access character varying(5) DEFAULT 'True'
);
CREATE INDEX g_account_user_account_idx ON g_account_user (g_account);
CREATE INDEX g_account_user_name_idx ON g_account_user (g_name);
CREATE INDEX g_account_user_deleted_idx ON g_account_user (g_deleted);
CREATE INDEX g_account_user_txnid_idx ON g_account_user (g_transaction_id);
CREATE TABLE g_account_user_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_access character varying(5) DEFAULT 'True'
);
CREATE TABLE g_account_machine (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_access character varying(5) DEFAULT 'True'
);
CREATE INDEX g_account_machine_account_idx ON g_account_machine (g_account);
CREATE INDEX g_account_machine_name_idx ON g_account_machine (g_name);
CREATE INDEX g_account_machine_deleted_idx ON g_account_machine (g_deleted);
CREATE INDEX g_account_machine_txnid_idx ON g_account_machine (g_transaction_id);
CREATE TABLE g_account_machine_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_access character varying(5) DEFAULT 'True'
);
CREATE TABLE g_account_organization (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_type character varying(@VARCHAR_SIZE@) DEFAULT 'Forward'
);
CREATE INDEX g_account_organization_account_idx ON g_account_organization (g_account);
CREATE INDEX g_account_organization_name_idx ON g_account_organization (g_name);
CREATE INDEX g_account_organization_deleted_idx ON g_account_organization (g_deleted);
CREATE INDEX g_account_organization_txnid_idx ON g_account_organization (g_transaction_id);
CREATE TABLE g_account_organization_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_name character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_type character varying(@VARCHAR_SIZE@) DEFAULT 'Forward'
);
CREATE TABLE g_allocation (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_account integer,
g_start_time integer DEFAULT 0,
g_end_time integer DEFAULT 2147483647,
g_amount double precision,
g_credit_limit double precision DEFAULT 0,
g_deposited double precision DEFAULT 0,
g_active character varying(5) DEFAULT 'True',
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_allocation_id_idx ON g_allocation (g_id);
CREATE INDEX g_allocation_account_idx ON g_allocation (g_account);
CREATE INDEX g_allocation_time_idx ON g_allocation (g_start_time, g_end_time);
CREATE INDEX g_allocation_deleted_idx ON g_allocation (g_deleted);
CREATE INDEX g_allocation_txnid_idx ON g_allocation (g_transaction_id);
CREATE TABLE g_allocation_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_account integer,
g_start_time integer DEFAULT 0,
g_end_time integer DEFAULT 2147483647,
g_amount double precision,
g_credit_limit double precision DEFAULT 0,
g_deposited double precision DEFAULT 0,
g_active character varying(5) DEFAULT 'True',
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_reservation (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_name character varying(@VARCHAR_SIZE@),
g_job character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_start_time integer DEFAULT 0,
g_end_time integer DEFAULT 2147483647,
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_reservation_id_idx ON g_reservation (g_id);
CREATE INDEX g_reservation_name_idx ON g_reservation (g_name);
CREATE INDEX g_reservation_time_idx ON g_reservation (g_start_time, g_end_time);
CREATE INDEX g_reservation_deleted_idx ON g_reservation (g_deleted);
CREATE INDEX g_reservation_txnid_idx ON g_reservation (g_transaction_id);
@SQL_INDEX_COMMENT@create INDEX g_id_not_deleted_idx ON g_reservation (g_deleted) WHERE NOT g_deleted='True';
CREATE TABLE g_reservation_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_name character varying(@VARCHAR_SIZE@),
g_job character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_start_time integer DEFAULT 0,
g_end_time integer DEFAULT 2147483647,
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_reservation_allocation (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_reservation integer,
g_id integer,
g_account integer,
g_amount double precision
);
CREATE INDEX g_reservation_allocation_reservation_idx ON g_reservation_allocation (g_reservation);
CREATE INDEX g_reservation_allocation_id_idx ON g_reservation_allocation (g_id);
CREATE INDEX g_reservation_allocation_account_idx ON g_reservation_allocation (g_account);
CREATE INDEX g_reservation_allocation_deleted_idx ON g_reservation_allocation (g_deleted);
CREATE INDEX g_reservation_allocation_txnid_idx ON g_reservation_allocation (g_transaction_id);
@SQL_INDEX_COMMENT@CREATE INDEX g_reservation_acct_where_idx ON g_reservation_allocation (g_account) WHERE g_deleted!='True';
CREATE TABLE g_reservation_allocation_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_reservation integer,
g_id integer,
g_account integer,
g_amount double precision
);
CREATE TABLE g_quotation (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_amount double precision,
g_start_time integer,
g_end_time integer,
g_wall_duration integer,
g_job character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_uses integer DEFAULT 1,
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_quotation_id_idx ON g_quotation (g_id);
CREATE INDEX g_quotation_time_idx ON g_quotation (g_start_time, g_end_time);
CREATE INDEX g_quotation_deleted_idx ON g_quotation (g_deleted);
CREATE INDEX g_quotation_txnid_idx ON g_quotation (g_transaction_id);
CREATE TABLE g_quotation_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_amount double precision,
g_start_time integer,
g_end_time integer,
g_wall_duration integer,
g_job character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_uses integer DEFAULT 1,
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_charge_rate (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_type character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_instance character varying(@VARCHAR_SIZE@),
g_rate double precision,
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_charge_rate_type_idx ON g_charge_rate (g_type);
CREATE INDEX g_charge_rate_name_idx ON g_charge_rate (g_name);
CREATE INDEX g_charge_rate_instance_idx ON g_charge_rate (g_instance);
CREATE INDEX g_charge_rate_deleted_idx ON g_charge_rate (g_deleted);
CREATE INDEX g_charge_rate_txnid_idx ON g_charge_rate (g_transaction_id);
CREATE TABLE g_charge_rate_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_type character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_instance character varying(@VARCHAR_SIZE@),
g_rate double precision,
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_quotation_charge_rate (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_quotation integer,
g_type character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_instance character varying(@VARCHAR_SIZE@),
g_rate double precision
);
CREATE TABLE g_quotation_charge_rate_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_quotation integer,
g_type character varying(@VARCHAR_SIZE@),
g_name character varying(@VARCHAR_SIZE@),
g_instance character varying(@VARCHAR_SIZE@),
g_rate double precision
);
CREATE INDEX g_quotation_charge_rate_quotation_idx ON g_quotation_charge_rate (g_quotation);
CREATE INDEX g_quotation_charge_rate_type_idx ON g_quotation_charge_rate (g_type);
CREATE INDEX g_quotation_charge_rate_name_idx ON g_quotation_charge_rate (g_name);
CREATE INDEX g_quotation_charge_rate_instance_idx ON g_quotation_charge_rate (g_instance);
CREATE INDEX g_quotation_charge_rate_deleted_idx ON g_quotation_charge_rate (g_deleted);
CREATE INDEX g_quotation_charge_rate_txnid_idx ON g_quotation_charge_rate (g_transaction_id);
CREATE TABLE g_job (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_job_id character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_charge double precision DEFAULT 0,
g_queue character varying(@VARCHAR_SIZE@),
g_type character varying(@VARCHAR_SIZE@),
g_stage character varying(@VARCHAR_SIZE@),
g_quality_of_service character varying(@VARCHAR_SIZE@),
g_nodes integer,
g_processors integer,
g_executable character varying(@VARCHAR_SIZE@),
g_application character varying(@VARCHAR_SIZE@),
g_start_time integer,
g_end_time integer,
g_wall_duration integer,
g_quote_id character varying(@VARCHAR_SIZE@),
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE INDEX g_job_id_idx ON g_job (g_id);
CREATE INDEX g_job_jobid_idx ON g_job (g_job_id);
CREATE INDEX g_job_deleted_idx ON g_job (g_deleted);
CREATE INDEX g_job_txnid_idx ON g_job (g_transaction_id);
CREATE TABLE g_job_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_id integer,
g_job_id character varying(@VARCHAR_SIZE@),
g_user character varying(@VARCHAR_SIZE@),
g_project character varying(@VARCHAR_SIZE@),
g_machine character varying(@VARCHAR_SIZE@),
g_charge double precision DEFAULT 0,
g_queue character varying(@VARCHAR_SIZE@),
g_type character varying(@VARCHAR_SIZE@),
g_stage character varying(@VARCHAR_SIZE@),
g_quality_of_service character varying(@VARCHAR_SIZE@),
g_nodes integer,
g_processors integer,
g_executable character varying(@VARCHAR_SIZE@),
g_application character varying(@VARCHAR_SIZE@),
g_start_time integer,
g_end_time integer,
g_wall_duration integer,
g_quote_id character varying(@VARCHAR_SIZE@),
g_call_type character varying(@VARCHAR_SIZE@) DEFAULT 'Normal',
g_description character varying(@VARCHAR_SIZE@)
);
CREATE TABLE g_account_account (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_id integer,
g_deposit_share integer DEFAULT 0,
g_overflow character varying(5) DEFAULT 'False'
);
CREATE INDEX g_account_account_account_idx ON g_account_account (g_account);
CREATE INDEX g_account_account_id_idx ON g_account_account (g_id);
CREATE INDEX g_account_account_deleted_idx ON g_account_account (g_deleted);
CREATE INDEX g_account_account_txnid_idx ON g_account_account (g_transaction_id);
CREATE TABLE g_account_account_log (
g_creation_time integer NOT NULL,
g_modification_time integer NOT NULL,
g_deleted character varying(5) DEFAULT 'False',
g_request_id integer NOT NULL,
g_transaction_id integer NOT NULL,
g_account integer,
g_id integer,
g_deposit_share integer DEFAULT 0,
g_overflow character varying(5) DEFAULT 'False'
);
INSERT INTO g_object VALUES ('Object', 'False', NULL, NULL, 'Object', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('Attribute', 'False', NULL, NULL, 'Attribute', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('Action', 'False', NULL, NULL, 'Action', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('Transaction', 'False', NULL, NULL, 'Transaction Log', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('System', 'False', NULL, NULL, 'System', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('User', 'False', NULL, NULL, 'User', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('Role', 'False', NULL, NULL, 'Role', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('RoleAction', 'True', 'Role', 'Action', 'Role Action Association', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('RoleUser', 'True', 'Role', 'User', 'Role User Association', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('Password', 'False', NULL, NULL, 'Password', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('ANY', 'False', NULL, NULL, 'Any Object', 'True', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('NONE', 'False', NULL, NULL, 'No Object', 'True', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_object VALUES ('Organization', 'False', NULL, NULL, 'Virtual Organization', 'False', 'False', @NOW@, @NOW@, 9, 9);
INSERT INTO g_object VALUES ('Project', 'False', NULL, NULL, 'Project', 'False', 'False', @NOW@, @NOW@, 27, 27);
INSERT INTO g_object VALUES ('Machine', 'False', NULL, NULL, 'Machine', 'False', 'False', @NOW@, @NOW@, 38, 38);
INSERT INTO g_object VALUES ('ProjectUser', 'True', 'Project', 'User', 'Membership mapping Users to Projects', 'False', 'False', @NOW@, @NOW@, 51, 51);
INSERT INTO g_object VALUES ('ProjectMachine', 'True', 'Project', 'Machine', 'Membership mapping Machines to Projects', 'False', 'False', @NOW@, @NOW@, 61, 61);
INSERT INTO g_object VALUES ('Account', 'False', NULL, NULL, 'Account', 'False', 'False', @NOW@, @NOW@, 70, 70);
INSERT INTO g_object VALUES ('AccountProject', 'True', 'Account', 'Project', 'Project Access control List', 'False', 'False', @NOW@, @NOW@, 83, 83);
INSERT INTO g_object VALUES ('AccountUser', 'True', 'Account', 'User', 'User Access control List', 'False', 'False', @NOW@, @NOW@, 92, 92);
INSERT INTO g_object VALUES ('AccountMachine', 'True', 'Account', 'Machine', 'Machine Access control List', 'False', 'False', @NOW@, @NOW@, 101, 101);
INSERT INTO g_object VALUES ('AccountOrganization', 'True', 'Account', 'Organization', 'Forwarding Account Information', 'False', 'False', @NOW@, @NOW@, 110, 110);
INSERT INTO g_object VALUES ('Allocation', 'False', NULL, NULL, 'Allocation', 'False', 'False', @NOW@, @NOW@, 122, 122);
INSERT INTO g_object VALUES ('Reservation', 'False', NULL, NULL, 'Reservation', 'False', 'False', @NOW@, @NOW@, 139, 139);
INSERT INTO g_object VALUES ('ReservationAllocation', 'True', 'Reservation', 'Allocation', 'Reservation Allocation Association', 'False', 'False', @NOW@, @NOW@, 155, 155);
INSERT INTO g_object VALUES ('Quotation', 'False', NULL, NULL, 'Quotation', 'False', 'False', @NOW@, @NOW@, 165, 165);
INSERT INTO g_object VALUES ('ChargeRate', 'False', NULL, NULL, 'Charge Rates', 'False', 'False', @NOW@, @NOW@, 183, 183);
INSERT INTO g_object VALUES ('QuotationChargeRate', 'True', 'Quotation', 'ChargeRate', 'Charge Rate guaranteed by the associated Quotation', 'False', 'False', @NOW@, @NOW@, 193, 193);
INSERT INTO g_object VALUES ('Job', 'False', NULL, NULL, 'Job', 'False', 'False', @NOW@, @NOW@, 203, 203);
INSERT INTO g_object VALUES ('AccountAccount', 'True', 'Account', 'Account', 'Account Deposit Linkage', 'False', 'False', @NOW@, @NOW@, 233, 233);
INSERT INTO g_attribute VALUES ('Object', 'Name', 'String', 'True', 'True', 'True', NULL, NULL, 10, 'False', 'Object Name', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'Association', 'Boolean', 'False', 'False', 'False', NULL, 'False', 20, 'False', 'Is this an association?', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'Parent', 'String', 'False', 'False', 'False', '@Object', NULL, 30, 'False', 'Parent Association', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'Child', 'String', 'False', 'False', 'False', '@Object', NULL, 40, 'False', 'Child Association', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'Description', 'String', 'False', 'False', 'False', NULL, NULL, 900, 'False', 'Description', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'Special', 'Boolean', 'False', 'False', 'False', NULL, 'False', 910, 'True', 'Is this a special object?', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'CreationTime', 'TimeStamp', 'False', 'False', 'False', NULL, NULL, 950, 'True', 'Time Created', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'ModificationTime', 'TimeStamp', 'False', 'False', 'False', NULL, NULL, 960, 'True', 'Last Updated', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'Deleted', 'Boolean', 'False', 'False', 'False', NULL, 'False', 970, 'True', 'Is this object deleted?', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'RequestId', 'Integer', 'False', 'False', 'False', NULL, NULL, 980, 'True', 'Last Modifying Request Id', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Object', 'TransactionId', 'Integer', 'False', 'False', 'False', NULL, NULL, 990, 'True', 'Last Modifying Transaction Id', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'Object', 'String', 'True', 'True', 'True', '@Object', NULL, 10, 'False', 'Object name', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'Name', 'String', 'True', 'True', 'True', NULL, NULL, 20, 'False', 'Attribute Name', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'DataType', 'String', 'False', 'False', 'True', '(AutoGen,TimeStamp,Boolean,Float,Integer,Currency,String)', 'String', 30, 'False', 'Data Type', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'PrimaryKey', 'Boolean', 'False', 'False', 'False', NULL, 'False', 50, 'False', 'Is this a primary key?', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'Required', 'Boolean', 'False', 'False', 'False', NULL, 'False', 60, 'False', 'Must this be non-null?', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'Fixed', 'Boolean', 'False', 'False', 'False', NULL, 'False', 70, 'False', 'Is the Attribute Fixed?', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'Values', 'String', 'False', 'False', 'False', NULL, NULL, 80, 'False', 'List of allowed values', 'False', 'False', @NOW@, @NOW@, 0, 0);
INSERT INTO g_attribute VALUES ('Attribute', 'DefaultValue', 'String', 'False', 'False', 'False', NULL, NULL, 90, 'False', 'Default value', 'False', 'False', @NOW@, @NOW@, 0, 0);