forked from bokwoon95/go-structured-query
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devlab_tables_test.go
824 lines (743 loc) · 26.7 KB
/
devlab_tables_test.go
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
// Code generated by 'sqgen-postgres tables'; DO NOT EDIT.
package sq // modified to break import cycle
// TABLE_APPLICATIONS references the public.applications table.
type TABLE_APPLICATIONS struct {
*TableInfo
APPLICATION_DATA JSONField
APPLICATION_FORM_ID NumberField
APPLICATION_ID NumberField
COHORT StringField
CREATED_AT TimeField
CREATOR_USER_ROLE_ID NumberField
DELETED_AT TimeField
MAGICSTRING StringField
PROJECT_IDEA StringField
PROJECT_LEVEL StringField
STATUS StringField
SUBMITTED BooleanField
TEAM_ID NumberField
TEAM_NAME StringField
UPDATED_AT TimeField
}
// APPLICATIONS creates an instance of the public.applications table.
func APPLICATIONS() TABLE_APPLICATIONS {
tbl := TABLE_APPLICATIONS{TableInfo: &TableInfo{
Schema: "public",
Name: "applications",
}}
tbl.APPLICATION_DATA = NewJSONField("application_data", tbl.TableInfo)
tbl.APPLICATION_FORM_ID = NewNumberField("application_form_id", tbl.TableInfo)
tbl.APPLICATION_ID = NewNumberField("application_id", tbl.TableInfo)
tbl.COHORT = NewStringField("cohort", tbl.TableInfo)
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.CREATOR_USER_ROLE_ID = NewNumberField("creator_user_role_id", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.MAGICSTRING = NewStringField("magicstring", tbl.TableInfo)
tbl.PROJECT_IDEA = NewStringField("project_idea", tbl.TableInfo)
tbl.PROJECT_LEVEL = NewStringField("project_level", tbl.TableInfo)
tbl.STATUS = NewStringField("status", tbl.TableInfo)
tbl.SUBMITTED = NewBooleanField("submitted", tbl.TableInfo)
tbl.TEAM_ID = NewNumberField("team_id", tbl.TableInfo)
tbl.TEAM_NAME = NewStringField("team_name", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_APPLICATIONS) As(alias string) TABLE_APPLICATIONS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_APPLICATIONS_STATUS_ENUM references the public.applications_status_enum table.
type TABLE_APPLICATIONS_STATUS_ENUM struct {
*TableInfo
STATUS StringField
}
// APPLICATIONS_STATUS_ENUM creates an instance of the public.applications_status_enum table.
func APPLICATIONS_STATUS_ENUM() TABLE_APPLICATIONS_STATUS_ENUM {
tbl := TABLE_APPLICATIONS_STATUS_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "applications_status_enum",
}}
tbl.STATUS = NewStringField("status", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_APPLICATIONS_STATUS_ENUM) As(alias string) TABLE_APPLICATIONS_STATUS_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_COHORT_ENUM references the public.cohort_enum table.
type TABLE_COHORT_ENUM struct {
*TableInfo
COHORT StringField
INSERTION_ORDER NumberField
}
// COHORT_ENUM creates an instance of the public.cohort_enum table.
func COHORT_ENUM() TABLE_COHORT_ENUM {
tbl := TABLE_COHORT_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "cohort_enum",
}}
tbl.COHORT = NewStringField("cohort", tbl.TableInfo)
tbl.INSERTION_ORDER = NewNumberField("insertion_order", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_COHORT_ENUM) As(alias string) TABLE_COHORT_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_FEEDBACK_ON_TEAMS references the public.feedback_on_teams table.
type TABLE_FEEDBACK_ON_TEAMS struct {
*TableInfo
CREATED_AT TimeField
DELETED_AT TimeField
EVALUATEE_TEAM_ID NumberField
EVALUATOR_TEAM_ID NumberField
FEEDBACK_DATA JSONField
FEEDBACK_FORM_ID NumberField
FEEDBACK_ID_ON_TEAM NumberField
OVERRIDE_OPEN BooleanField
SUBMITTED BooleanField
UPDATED_AT TimeField
}
// FEEDBACK_ON_TEAMS creates an instance of the public.feedback_on_teams table.
func FEEDBACK_ON_TEAMS() TABLE_FEEDBACK_ON_TEAMS {
tbl := TABLE_FEEDBACK_ON_TEAMS{TableInfo: &TableInfo{
Schema: "public",
Name: "feedback_on_teams",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.EVALUATEE_TEAM_ID = NewNumberField("evaluatee_team_id", tbl.TableInfo)
tbl.EVALUATOR_TEAM_ID = NewNumberField("evaluator_team_id", tbl.TableInfo)
tbl.FEEDBACK_DATA = NewJSONField("feedback_data", tbl.TableInfo)
tbl.FEEDBACK_FORM_ID = NewNumberField("feedback_form_id", tbl.TableInfo)
tbl.FEEDBACK_ID_ON_TEAM = NewNumberField("feedback_id_on_team", tbl.TableInfo)
tbl.OVERRIDE_OPEN = NewBooleanField("override_open", tbl.TableInfo)
tbl.SUBMITTED = NewBooleanField("submitted", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_FEEDBACK_ON_TEAMS) As(alias string) TABLE_FEEDBACK_ON_TEAMS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_FEEDBACK_ON_USERS references the public.feedback_on_users table.
type TABLE_FEEDBACK_ON_USERS struct {
*TableInfo
CREATED_AT TimeField
DELETED_AT TimeField
EVALUATEE_USER_ROLE_ID NumberField
EVALUATOR_TEAM_ID NumberField
FEEDBACK_DATA JSONField
FEEDBACK_FORM_ID NumberField
FEEDBACK_ID_ON_USER NumberField
OVERRIDE_OPEN BooleanField
SUBMITTED BooleanField
UPDATED_AT TimeField
}
// FEEDBACK_ON_USERS creates an instance of the public.feedback_on_users table.
func FEEDBACK_ON_USERS() TABLE_FEEDBACK_ON_USERS {
tbl := TABLE_FEEDBACK_ON_USERS{TableInfo: &TableInfo{
Schema: "public",
Name: "feedback_on_users",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.EVALUATEE_USER_ROLE_ID = NewNumberField("evaluatee_user_role_id", tbl.TableInfo)
tbl.EVALUATOR_TEAM_ID = NewNumberField("evaluator_team_id", tbl.TableInfo)
tbl.FEEDBACK_DATA = NewJSONField("feedback_data", tbl.TableInfo)
tbl.FEEDBACK_FORM_ID = NewNumberField("feedback_form_id", tbl.TableInfo)
tbl.FEEDBACK_ID_ON_USER = NewNumberField("feedback_id_on_user", tbl.TableInfo)
tbl.OVERRIDE_OPEN = NewBooleanField("override_open", tbl.TableInfo)
tbl.SUBMITTED = NewBooleanField("submitted", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_FEEDBACK_ON_USERS) As(alias string) TABLE_FEEDBACK_ON_USERS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_FORMS references the public.forms table.
type TABLE_FORMS struct {
*TableInfo
CREATED_AT TimeField
DELETED_AT TimeField
FORM_ID NumberField
NAME StringField
PERIOD_ID NumberField
QUESTIONS JSONField
SUBSECTION StringField
UPDATED_AT TimeField
}
// FORMS creates an instance of the public.forms table.
func FORMS() TABLE_FORMS {
tbl := TABLE_FORMS{TableInfo: &TableInfo{
Schema: "public",
Name: "forms",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.FORM_ID = NewNumberField("form_id", tbl.TableInfo)
tbl.NAME = NewStringField("name", tbl.TableInfo)
tbl.PERIOD_ID = NewNumberField("period_id", tbl.TableInfo)
tbl.QUESTIONS = NewJSONField("questions", tbl.TableInfo)
tbl.SUBSECTION = NewStringField("subsection", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_FORMS) As(alias string) TABLE_FORMS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_FORMS_AUTHORIZED_ROLES references the public.forms_authorized_roles table.
type TABLE_FORMS_AUTHORIZED_ROLES struct {
*TableInfo
FORM_ID NumberField
ROLE StringField
}
// FORMS_AUTHORIZED_ROLES creates an instance of the public.forms_authorized_roles table.
func FORMS_AUTHORIZED_ROLES() TABLE_FORMS_AUTHORIZED_ROLES {
tbl := TABLE_FORMS_AUTHORIZED_ROLES{TableInfo: &TableInfo{
Schema: "public",
Name: "forms_authorized_roles",
}}
tbl.FORM_ID = NewNumberField("form_id", tbl.TableInfo)
tbl.ROLE = NewStringField("role", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_FORMS_AUTHORIZED_ROLES) As(alias string) TABLE_FORMS_AUTHORIZED_ROLES {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_MEDIA references the public.media table.
type TABLE_MEDIA struct {
*TableInfo
CREATED_AT TimeField
DATA BinaryField
DELETED_AT TimeField
DESCRIPTION StringField
NAME StringField
TYPE StringField
UPDATED_AT TimeField
UUID UUIDField
}
// MEDIA creates an instance of the public.media table.
func MEDIA() TABLE_MEDIA {
tbl := TABLE_MEDIA{TableInfo: &TableInfo{
Schema: "public",
Name: "media",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DATA = NewBinaryField("data", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.DESCRIPTION = NewStringField("description", tbl.TableInfo)
tbl.NAME = NewStringField("name", tbl.TableInfo)
tbl.TYPE = NewStringField("type", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
tbl.UUID = NewUUIDField("uuid", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_MEDIA) As(alias string) TABLE_MEDIA {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_MILESTONE_ENUM references the public.milestone_enum table.
type TABLE_MILESTONE_ENUM struct {
*TableInfo
MILESTONE StringField
}
// MILESTONE_ENUM creates an instance of the public.milestone_enum table.
func MILESTONE_ENUM() TABLE_MILESTONE_ENUM {
tbl := TABLE_MILESTONE_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "milestone_enum",
}}
tbl.MILESTONE = NewStringField("milestone", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_MILESTONE_ENUM) As(alias string) TABLE_MILESTONE_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_MIME_TYPE_ENUM references the public.mime_type_enum table.
type TABLE_MIME_TYPE_ENUM struct {
*TableInfo
TYPE StringField
}
// MIME_TYPE_ENUM creates an instance of the public.mime_type_enum table.
func MIME_TYPE_ENUM() TABLE_MIME_TYPE_ENUM {
tbl := TABLE_MIME_TYPE_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "mime_type_enum",
}}
tbl.TYPE = NewStringField("type", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_MIME_TYPE_ENUM) As(alias string) TABLE_MIME_TYPE_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_PERIODS references the public.periods table.
type TABLE_PERIODS struct {
*TableInfo
COHORT StringField
CREATED_AT TimeField
DELETED_AT TimeField
END_AT TimeField
MILESTONE StringField
PERIOD_ID NumberField
STAGE StringField
START_AT TimeField
UPDATED_AT TimeField
}
// PERIODS creates an instance of the public.periods table.
func PERIODS() TABLE_PERIODS {
tbl := TABLE_PERIODS{TableInfo: &TableInfo{
Schema: "public",
Name: "periods",
}}
tbl.COHORT = NewStringField("cohort", tbl.TableInfo)
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.END_AT = NewTimeField("end_at", tbl.TableInfo)
tbl.MILESTONE = NewStringField("milestone", tbl.TableInfo)
tbl.PERIOD_ID = NewNumberField("period_id", tbl.TableInfo)
tbl.STAGE = NewStringField("stage", tbl.TableInfo)
tbl.START_AT = NewTimeField("start_at", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_PERIODS) As(alias string) TABLE_PERIODS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_PROJECT_CATEGORY_ENUM references the public.project_category_enum table.
type TABLE_PROJECT_CATEGORY_ENUM struct {
*TableInfo
PROJECT_CATEGORY StringField
}
// PROJECT_CATEGORY_ENUM creates an instance of the public.project_category_enum table.
func PROJECT_CATEGORY_ENUM() TABLE_PROJECT_CATEGORY_ENUM {
tbl := TABLE_PROJECT_CATEGORY_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "project_category_enum",
}}
tbl.PROJECT_CATEGORY = NewStringField("project_category", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_PROJECT_CATEGORY_ENUM) As(alias string) TABLE_PROJECT_CATEGORY_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_PROJECT_LEVEL_ENUM references the public.project_level_enum table.
type TABLE_PROJECT_LEVEL_ENUM struct {
*TableInfo
PROJECT_LEVEL StringField
}
// PROJECT_LEVEL_ENUM creates an instance of the public.project_level_enum table.
func PROJECT_LEVEL_ENUM() TABLE_PROJECT_LEVEL_ENUM {
tbl := TABLE_PROJECT_LEVEL_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "project_level_enum",
}}
tbl.PROJECT_LEVEL = NewStringField("project_level", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_PROJECT_LEVEL_ENUM) As(alias string) TABLE_PROJECT_LEVEL_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_ROLE_ENUM references the public.role_enum table.
type TABLE_ROLE_ENUM struct {
*TableInfo
ROLE StringField
}
// ROLE_ENUM creates an instance of the public.role_enum table.
func ROLE_ENUM() TABLE_ROLE_ENUM {
tbl := TABLE_ROLE_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "role_enum",
}}
tbl.ROLE = NewStringField("role", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_ROLE_ENUM) As(alias string) TABLE_ROLE_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_SESSIONS references the public.sessions table.
type TABLE_SESSIONS struct {
*TableInfo
CREATED_AT TimeField
HASH StringField
USER_ID NumberField
}
// SESSIONS creates an instance of the public.sessions table.
func SESSIONS() TABLE_SESSIONS {
tbl := TABLE_SESSIONS{TableInfo: &TableInfo{
Schema: "public",
Name: "sessions",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.HASH = NewStringField("hash", tbl.TableInfo)
tbl.USER_ID = NewNumberField("user_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_SESSIONS) As(alias string) TABLE_SESSIONS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_STAGE_ENUM references the public.stage_enum table.
type TABLE_STAGE_ENUM struct {
*TableInfo
STAGE StringField
}
// STAGE_ENUM creates an instance of the public.stage_enum table.
func STAGE_ENUM() TABLE_STAGE_ENUM {
tbl := TABLE_STAGE_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "stage_enum",
}}
tbl.STAGE = NewStringField("stage", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_STAGE_ENUM) As(alias string) TABLE_STAGE_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_SUBMISSIONS references the public.submissions table.
type TABLE_SUBMISSIONS struct {
*TableInfo
CREATED_AT TimeField
DELETED_AT TimeField
OVERRIDE_OPEN BooleanField
POSTER StringField
README StringField
SUBMISSION_DATA JSONField
SUBMISSION_FORM_ID NumberField
SUBMISSION_ID NumberField
SUBMITTED BooleanField
TEAM_ID NumberField
UPDATED_AT TimeField
VIDEO StringField
}
// SUBMISSIONS creates an instance of the public.submissions table.
func SUBMISSIONS() TABLE_SUBMISSIONS {
tbl := TABLE_SUBMISSIONS{TableInfo: &TableInfo{
Schema: "public",
Name: "submissions",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.OVERRIDE_OPEN = NewBooleanField("override_open", tbl.TableInfo)
tbl.POSTER = NewStringField("poster", tbl.TableInfo)
tbl.README = NewStringField("readme", tbl.TableInfo)
tbl.SUBMISSION_DATA = NewJSONField("submission_data", tbl.TableInfo)
tbl.SUBMISSION_FORM_ID = NewNumberField("submission_form_id", tbl.TableInfo)
tbl.SUBMISSION_ID = NewNumberField("submission_id", tbl.TableInfo)
tbl.SUBMITTED = NewBooleanField("submitted", tbl.TableInfo)
tbl.TEAM_ID = NewNumberField("team_id", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
tbl.VIDEO = NewStringField("video", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_SUBMISSIONS) As(alias string) TABLE_SUBMISSIONS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_SUBMISSIONS_CATEGORIES references the public.submissions_categories table.
type TABLE_SUBMISSIONS_CATEGORIES struct {
*TableInfo
CATEGORY StringField
SUBMISSION_ID NumberField
}
// SUBMISSIONS_CATEGORIES creates an instance of the public.submissions_categories table.
func SUBMISSIONS_CATEGORIES() TABLE_SUBMISSIONS_CATEGORIES {
tbl := TABLE_SUBMISSIONS_CATEGORIES{TableInfo: &TableInfo{
Schema: "public",
Name: "submissions_categories",
}}
tbl.CATEGORY = NewStringField("category", tbl.TableInfo)
tbl.SUBMISSION_ID = NewNumberField("submission_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_SUBMISSIONS_CATEGORIES) As(alias string) TABLE_SUBMISSIONS_CATEGORIES {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_TEAM_EVALUATION_PAIRS references the public.team_evaluation_pairs table.
type TABLE_TEAM_EVALUATION_PAIRS struct {
*TableInfo
EVALUATEE_TEAM_ID NumberField
EVALUATOR_TEAM_ID NumberField
}
// TEAM_EVALUATION_PAIRS creates an instance of the public.team_evaluation_pairs table.
func TEAM_EVALUATION_PAIRS() TABLE_TEAM_EVALUATION_PAIRS {
tbl := TABLE_TEAM_EVALUATION_PAIRS{TableInfo: &TableInfo{
Schema: "public",
Name: "team_evaluation_pairs",
}}
tbl.EVALUATEE_TEAM_ID = NewNumberField("evaluatee_team_id", tbl.TableInfo)
tbl.EVALUATOR_TEAM_ID = NewNumberField("evaluator_team_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_TEAM_EVALUATION_PAIRS) As(alias string) TABLE_TEAM_EVALUATION_PAIRS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_TEAM_EVALUATIONS references the public.team_evaluations table.
type TABLE_TEAM_EVALUATIONS struct {
*TableInfo
CREATED_AT TimeField
DELETED_AT TimeField
EVALUATEE_SUBMISSION_ID NumberField
EVALUATION_DATA JSONField
EVALUATION_FORM_ID NumberField
EVALUATOR_TEAM_ID NumberField
OVERRIDE_OPEN BooleanField
SUBMITTED BooleanField
TEAM_EVALUATION_ID NumberField
UPDATED_AT TimeField
}
// TEAM_EVALUATIONS creates an instance of the public.team_evaluations table.
func TEAM_EVALUATIONS() TABLE_TEAM_EVALUATIONS {
tbl := TABLE_TEAM_EVALUATIONS{TableInfo: &TableInfo{
Schema: "public",
Name: "team_evaluations",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.EVALUATEE_SUBMISSION_ID = NewNumberField("evaluatee_submission_id", tbl.TableInfo)
tbl.EVALUATION_DATA = NewJSONField("evaluation_data", tbl.TableInfo)
tbl.EVALUATION_FORM_ID = NewNumberField("evaluation_form_id", tbl.TableInfo)
tbl.EVALUATOR_TEAM_ID = NewNumberField("evaluator_team_id", tbl.TableInfo)
tbl.OVERRIDE_OPEN = NewBooleanField("override_open", tbl.TableInfo)
tbl.SUBMITTED = NewBooleanField("submitted", tbl.TableInfo)
tbl.TEAM_EVALUATION_ID = NewNumberField("team_evaluation_id", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_TEAM_EVALUATIONS) As(alias string) TABLE_TEAM_EVALUATIONS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_TEAMS references the public.teams table.
type TABLE_TEAMS struct {
*TableInfo
ADVISER_USER_ROLE_ID NumberField
COHORT StringField
CREATED_AT TimeField
DELETED_AT TimeField
MENTOR_USER_ROLE_ID NumberField
PROJECT_IDEA StringField
PROJECT_LEVEL StringField
STATUS StringField
TEAM_DATA JSONField
TEAM_ID NumberField
TEAM_NAME StringField
UPDATED_AT TimeField
}
// TEAMS creates an instance of the public.teams table.
func TEAMS() TABLE_TEAMS {
tbl := TABLE_TEAMS{TableInfo: &TableInfo{
Schema: "public",
Name: "teams",
}}
tbl.ADVISER_USER_ROLE_ID = NewNumberField("adviser_user_role_id", tbl.TableInfo)
tbl.COHORT = NewStringField("cohort", tbl.TableInfo)
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.MENTOR_USER_ROLE_ID = NewNumberField("mentor_user_role_id", tbl.TableInfo)
tbl.PROJECT_IDEA = NewStringField("project_idea", tbl.TableInfo)
tbl.PROJECT_LEVEL = NewStringField("project_level", tbl.TableInfo)
tbl.STATUS = NewStringField("status", tbl.TableInfo)
tbl.TEAM_DATA = NewJSONField("team_data", tbl.TableInfo)
tbl.TEAM_ID = NewNumberField("team_id", tbl.TableInfo)
tbl.TEAM_NAME = NewStringField("team_name", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_TEAMS) As(alias string) TABLE_TEAMS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_TEAMS_STATUS_ENUM references the public.teams_status_enum table.
type TABLE_TEAMS_STATUS_ENUM struct {
*TableInfo
STATUS StringField
}
// TEAMS_STATUS_ENUM creates an instance of the public.teams_status_enum table.
func TEAMS_STATUS_ENUM() TABLE_TEAMS_STATUS_ENUM {
tbl := TABLE_TEAMS_STATUS_ENUM{TableInfo: &TableInfo{
Schema: "public",
Name: "teams_status_enum",
}}
tbl.STATUS = NewStringField("status", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_TEAMS_STATUS_ENUM) As(alias string) TABLE_TEAMS_STATUS_ENUM {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_USER_EVALUATIONS references the public.user_evaluations table.
type TABLE_USER_EVALUATIONS struct {
*TableInfo
CREATED_AT TimeField
DELETED_AT TimeField
EVALUATEE_SUBMISSION_ID NumberField
EVALUATION_DATA JSONField
EVALUATION_FORM_ID NumberField
EVALUATOR_USER_ROLE_ID NumberField
OVERRIDE_OPEN BooleanField
SUBMITTED BooleanField
UPDATED_AT TimeField
USER_EVALUATION_ID NumberField
}
// USER_EVALUATIONS creates an instance of the public.user_evaluations table.
func USER_EVALUATIONS() TABLE_USER_EVALUATIONS {
tbl := TABLE_USER_EVALUATIONS{TableInfo: &TableInfo{
Schema: "public",
Name: "user_evaluations",
}}
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.EVALUATEE_SUBMISSION_ID = NewNumberField("evaluatee_submission_id", tbl.TableInfo)
tbl.EVALUATION_DATA = NewJSONField("evaluation_data", tbl.TableInfo)
tbl.EVALUATION_FORM_ID = NewNumberField("evaluation_form_id", tbl.TableInfo)
tbl.EVALUATOR_USER_ROLE_ID = NewNumberField("evaluator_user_role_id", tbl.TableInfo)
tbl.OVERRIDE_OPEN = NewBooleanField("override_open", tbl.TableInfo)
tbl.SUBMITTED = NewBooleanField("submitted", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
tbl.USER_EVALUATION_ID = NewNumberField("user_evaluation_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_USER_EVALUATIONS) As(alias string) TABLE_USER_EVALUATIONS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_USER_ROLES references the public.user_roles table.
type TABLE_USER_ROLES struct {
*TableInfo
COHORT StringField
CREATED_AT TimeField
DELETED_AT TimeField
ROLE StringField
UPDATED_AT TimeField
USER_ID NumberField
USER_ROLE_ID NumberField
}
// USER_ROLES creates an instance of the public.user_roles table.
func USER_ROLES() TABLE_USER_ROLES {
tbl := TABLE_USER_ROLES{TableInfo: &TableInfo{
Schema: "public",
Name: "user_roles",
}}
tbl.COHORT = NewStringField("cohort", tbl.TableInfo)
tbl.CREATED_AT = NewTimeField("created_at", tbl.TableInfo)
tbl.DELETED_AT = NewTimeField("deleted_at", tbl.TableInfo)
tbl.ROLE = NewStringField("role", tbl.TableInfo)
tbl.UPDATED_AT = NewTimeField("updated_at", tbl.TableInfo)
tbl.USER_ID = NewNumberField("user_id", tbl.TableInfo)
tbl.USER_ROLE_ID = NewNumberField("user_role_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_USER_ROLES) As(alias string) TABLE_USER_ROLES {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_USER_ROLES_APPLICANTS references the public.user_roles_applicants table.
type TABLE_USER_ROLES_APPLICANTS struct {
*TableInfo
APPLICANT_DATA JSONField
APPLICANT_FORM_ID NumberField
APPLICATION_ID NumberField
USER_ROLE_ID NumberField
}
// USER_ROLES_APPLICANTS creates an instance of the public.user_roles_applicants table.
func USER_ROLES_APPLICANTS() TABLE_USER_ROLES_APPLICANTS {
tbl := TABLE_USER_ROLES_APPLICANTS{TableInfo: &TableInfo{
Schema: "public",
Name: "user_roles_applicants",
}}
tbl.APPLICANT_DATA = NewJSONField("applicant_data", tbl.TableInfo)
tbl.APPLICANT_FORM_ID = NewNumberField("applicant_form_id", tbl.TableInfo)
tbl.APPLICATION_ID = NewNumberField("application_id", tbl.TableInfo)
tbl.USER_ROLE_ID = NewNumberField("user_role_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_USER_ROLES_APPLICANTS) As(alias string) TABLE_USER_ROLES_APPLICANTS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_USER_ROLES_STUDENTS references the public.user_roles_students table.
type TABLE_USER_ROLES_STUDENTS struct {
*TableInfo
STUDENT_DATA JSONField
TEAM_ID NumberField
USER_ROLE_ID NumberField
}
// USER_ROLES_STUDENTS creates an instance of the public.user_roles_students table.
func USER_ROLES_STUDENTS() TABLE_USER_ROLES_STUDENTS {
tbl := TABLE_USER_ROLES_STUDENTS{TableInfo: &TableInfo{
Schema: "public",
Name: "user_roles_students",
}}
tbl.STUDENT_DATA = NewJSONField("student_data", tbl.TableInfo)
tbl.TEAM_ID = NewNumberField("team_id", tbl.TableInfo)
tbl.USER_ROLE_ID = NewNumberField("user_role_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_USER_ROLES_STUDENTS) As(alias string) TABLE_USER_ROLES_STUDENTS {
tbl.TableInfo.Alias = alias
return tbl
}
// TABLE_USERS references the public.users table.
type TABLE_USERS struct {
*TableInfo
DISPLAYNAME StringField
EMAIL StringField
PASSWORD StringField
USER_ID NumberField
}
// USERS creates an instance of the public.users table.
func USERS() TABLE_USERS {
tbl := TABLE_USERS{TableInfo: &TableInfo{
Schema: "public",
Name: "users",
}}
tbl.DISPLAYNAME = NewStringField("displayname", tbl.TableInfo)
tbl.EMAIL = NewStringField("email", tbl.TableInfo)
tbl.PASSWORD = NewStringField("password", tbl.TableInfo)
tbl.USER_ID = NewNumberField("user_id", tbl.TableInfo)
return tbl
}
// As modifies the alias of the underlying table.
func (tbl TABLE_USERS) As(alias string) TABLE_USERS {
tbl.TableInfo.Alias = alias
return tbl
}