@compfest-18/oppenheimer-schema 0.0.5-develop.c0e6c23 → 0.0.6-develop.713efb1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +381 -8
- package/dist/index.mjs +213 -160
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3763,8 +3763,8 @@ declare const announcements: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3763
3763
|
identity: undefined;
|
|
3764
3764
|
generated: undefined;
|
|
3765
3765
|
}, {}, {}>;
|
|
3766
|
-
|
|
3767
|
-
name: "
|
|
3766
|
+
title: drizzle_orm_pg_core.PgColumn<{
|
|
3767
|
+
name: "title";
|
|
3768
3768
|
tableName: "announcements";
|
|
3769
3769
|
dataType: "string";
|
|
3770
3770
|
columnType: "PgText";
|
|
@@ -3780,14 +3780,65 @@ declare const announcements: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3780
3780
|
identity: undefined;
|
|
3781
3781
|
generated: undefined;
|
|
3782
3782
|
}, {}, {}>;
|
|
3783
|
-
|
|
3784
|
-
name: "
|
|
3783
|
+
description: drizzle_orm_pg_core.PgColumn<{
|
|
3784
|
+
name: "description";
|
|
3785
|
+
tableName: "announcements";
|
|
3786
|
+
dataType: "string";
|
|
3787
|
+
columnType: "PgText";
|
|
3788
|
+
data: string;
|
|
3789
|
+
driverParam: string;
|
|
3790
|
+
notNull: false;
|
|
3791
|
+
hasDefault: false;
|
|
3792
|
+
isPrimaryKey: false;
|
|
3793
|
+
isAutoincrement: false;
|
|
3794
|
+
hasRuntimeDefault: false;
|
|
3795
|
+
enumValues: [string, ...string[]];
|
|
3796
|
+
baseColumn: never;
|
|
3797
|
+
identity: undefined;
|
|
3798
|
+
generated: undefined;
|
|
3799
|
+
}, {}, {}>;
|
|
3800
|
+
message: drizzle_orm_pg_core.PgColumn<{
|
|
3801
|
+
name: "message";
|
|
3802
|
+
tableName: "announcements";
|
|
3803
|
+
dataType: "string";
|
|
3804
|
+
columnType: "PgText";
|
|
3805
|
+
data: string;
|
|
3806
|
+
driverParam: string;
|
|
3807
|
+
notNull: false;
|
|
3808
|
+
hasDefault: false;
|
|
3809
|
+
isPrimaryKey: false;
|
|
3810
|
+
isAutoincrement: false;
|
|
3811
|
+
hasRuntimeDefault: false;
|
|
3812
|
+
enumValues: [string, ...string[]];
|
|
3813
|
+
baseColumn: never;
|
|
3814
|
+
identity: undefined;
|
|
3815
|
+
generated: undefined;
|
|
3816
|
+
}, {}, {}>;
|
|
3817
|
+
status: drizzle_orm_pg_core.PgColumn<{
|
|
3818
|
+
name: "status";
|
|
3785
3819
|
tableName: "announcements";
|
|
3786
3820
|
dataType: "string";
|
|
3787
3821
|
columnType: "PgText";
|
|
3788
3822
|
data: string;
|
|
3789
3823
|
driverParam: string;
|
|
3790
3824
|
notNull: true;
|
|
3825
|
+
hasDefault: true;
|
|
3826
|
+
isPrimaryKey: false;
|
|
3827
|
+
isAutoincrement: false;
|
|
3828
|
+
hasRuntimeDefault: false;
|
|
3829
|
+
enumValues: [string, ...string[]];
|
|
3830
|
+
baseColumn: never;
|
|
3831
|
+
identity: undefined;
|
|
3832
|
+
generated: undefined;
|
|
3833
|
+
}, {}, {}>;
|
|
3834
|
+
programId: drizzle_orm_pg_core.PgColumn<{
|
|
3835
|
+
name: "program_id";
|
|
3836
|
+
tableName: "announcements";
|
|
3837
|
+
dataType: "string";
|
|
3838
|
+
columnType: "PgText";
|
|
3839
|
+
data: string;
|
|
3840
|
+
driverParam: string;
|
|
3841
|
+
notNull: false;
|
|
3791
3842
|
hasDefault: false;
|
|
3792
3843
|
isPrimaryKey: false;
|
|
3793
3844
|
isAutoincrement: false;
|
|
@@ -3797,8 +3848,110 @@ declare const announcements: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3797
3848
|
identity: undefined;
|
|
3798
3849
|
generated: undefined;
|
|
3799
3850
|
}, {}, {}>;
|
|
3800
|
-
|
|
3801
|
-
name: "
|
|
3851
|
+
isAdmin: drizzle_orm_pg_core.PgColumn<{
|
|
3852
|
+
name: "is_admin";
|
|
3853
|
+
tableName: "announcements";
|
|
3854
|
+
dataType: "boolean";
|
|
3855
|
+
columnType: "PgBoolean";
|
|
3856
|
+
data: boolean;
|
|
3857
|
+
driverParam: boolean;
|
|
3858
|
+
notNull: true;
|
|
3859
|
+
hasDefault: true;
|
|
3860
|
+
isPrimaryKey: false;
|
|
3861
|
+
isAutoincrement: false;
|
|
3862
|
+
hasRuntimeDefault: false;
|
|
3863
|
+
enumValues: undefined;
|
|
3864
|
+
baseColumn: never;
|
|
3865
|
+
identity: undefined;
|
|
3866
|
+
generated: undefined;
|
|
3867
|
+
}, {}, {}>;
|
|
3868
|
+
audienceAcademy: drizzle_orm_pg_core.PgColumn<{
|
|
3869
|
+
name: "audience_academy";
|
|
3870
|
+
tableName: "announcements";
|
|
3871
|
+
dataType: "boolean";
|
|
3872
|
+
columnType: "PgBoolean";
|
|
3873
|
+
data: boolean;
|
|
3874
|
+
driverParam: boolean;
|
|
3875
|
+
notNull: true;
|
|
3876
|
+
hasDefault: true;
|
|
3877
|
+
isPrimaryKey: false;
|
|
3878
|
+
isAutoincrement: false;
|
|
3879
|
+
hasRuntimeDefault: false;
|
|
3880
|
+
enumValues: undefined;
|
|
3881
|
+
baseColumn: never;
|
|
3882
|
+
identity: undefined;
|
|
3883
|
+
generated: undefined;
|
|
3884
|
+
}, {}, {}>;
|
|
3885
|
+
audienceCompetition: drizzle_orm_pg_core.PgColumn<{
|
|
3886
|
+
name: "audience_competition";
|
|
3887
|
+
tableName: "announcements";
|
|
3888
|
+
dataType: "boolean";
|
|
3889
|
+
columnType: "PgBoolean";
|
|
3890
|
+
data: boolean;
|
|
3891
|
+
driverParam: boolean;
|
|
3892
|
+
notNull: true;
|
|
3893
|
+
hasDefault: true;
|
|
3894
|
+
isPrimaryKey: false;
|
|
3895
|
+
isAutoincrement: false;
|
|
3896
|
+
hasRuntimeDefault: false;
|
|
3897
|
+
enumValues: undefined;
|
|
3898
|
+
baseColumn: never;
|
|
3899
|
+
identity: undefined;
|
|
3900
|
+
generated: undefined;
|
|
3901
|
+
}, {}, {}>;
|
|
3902
|
+
emailEnabled: drizzle_orm_pg_core.PgColumn<{
|
|
3903
|
+
name: "email_enabled";
|
|
3904
|
+
tableName: "announcements";
|
|
3905
|
+
dataType: "boolean";
|
|
3906
|
+
columnType: "PgBoolean";
|
|
3907
|
+
data: boolean;
|
|
3908
|
+
driverParam: boolean;
|
|
3909
|
+
notNull: true;
|
|
3910
|
+
hasDefault: true;
|
|
3911
|
+
isPrimaryKey: false;
|
|
3912
|
+
isAutoincrement: false;
|
|
3913
|
+
hasRuntimeDefault: false;
|
|
3914
|
+
enumValues: undefined;
|
|
3915
|
+
baseColumn: never;
|
|
3916
|
+
identity: undefined;
|
|
3917
|
+
generated: undefined;
|
|
3918
|
+
}, {}, {}>;
|
|
3919
|
+
emailSent: drizzle_orm_pg_core.PgColumn<{
|
|
3920
|
+
name: "email_sent";
|
|
3921
|
+
tableName: "announcements";
|
|
3922
|
+
dataType: "boolean";
|
|
3923
|
+
columnType: "PgBoolean";
|
|
3924
|
+
data: boolean;
|
|
3925
|
+
driverParam: boolean;
|
|
3926
|
+
notNull: true;
|
|
3927
|
+
hasDefault: true;
|
|
3928
|
+
isPrimaryKey: false;
|
|
3929
|
+
isAutoincrement: false;
|
|
3930
|
+
hasRuntimeDefault: false;
|
|
3931
|
+
enumValues: undefined;
|
|
3932
|
+
baseColumn: never;
|
|
3933
|
+
identity: undefined;
|
|
3934
|
+
generated: undefined;
|
|
3935
|
+
}, {}, {}>;
|
|
3936
|
+
emailSentAt: drizzle_orm_pg_core.PgColumn<{
|
|
3937
|
+
name: "email_sent_at";
|
|
3938
|
+
tableName: "announcements";
|
|
3939
|
+
dataType: "date";
|
|
3940
|
+
columnType: "PgTimestamp";
|
|
3941
|
+
data: Date;
|
|
3942
|
+
driverParam: string;
|
|
3943
|
+
notNull: false;
|
|
3944
|
+
hasDefault: false;
|
|
3945
|
+
isPrimaryKey: false;
|
|
3946
|
+
isAutoincrement: false;
|
|
3947
|
+
hasRuntimeDefault: false;
|
|
3948
|
+
enumValues: undefined;
|
|
3949
|
+
baseColumn: never;
|
|
3950
|
+
identity: undefined;
|
|
3951
|
+
generated: undefined;
|
|
3952
|
+
}, {}, {}>;
|
|
3953
|
+
emailError: drizzle_orm_pg_core.PgColumn<{
|
|
3954
|
+
name: "email_error";
|
|
3802
3955
|
tableName: "announcements";
|
|
3803
3956
|
dataType: "string";
|
|
3804
3957
|
columnType: "PgText";
|
|
@@ -3869,7 +4022,7 @@ declare const announcements: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3869
4022
|
dialect: "pg";
|
|
3870
4023
|
}>;
|
|
3871
4024
|
declare const announcementsRelations: drizzle_orm.Relations<"announcements", {
|
|
3872
|
-
program: drizzle_orm.One<"programs",
|
|
4025
|
+
program: drizzle_orm.One<"programs", false>;
|
|
3873
4026
|
}>;
|
|
3874
4027
|
|
|
3875
4028
|
declare const leaderboardHistories: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
@@ -7606,6 +7759,99 @@ declare const cvClinicVouchers: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
7606
7759
|
dialect: "pg";
|
|
7607
7760
|
}>;
|
|
7608
7761
|
|
|
7762
|
+
declare const competitionShowcases: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
7763
|
+
name: "competition_showcases";
|
|
7764
|
+
schema: undefined;
|
|
7765
|
+
columns: {
|
|
7766
|
+
id: drizzle_orm_pg_core.PgColumn<{
|
|
7767
|
+
name: "id";
|
|
7768
|
+
tableName: "competition_showcases";
|
|
7769
|
+
dataType: "string";
|
|
7770
|
+
columnType: "PgText";
|
|
7771
|
+
data: string;
|
|
7772
|
+
driverParam: string;
|
|
7773
|
+
notNull: true;
|
|
7774
|
+
hasDefault: false;
|
|
7775
|
+
isPrimaryKey: true;
|
|
7776
|
+
isAutoincrement: false;
|
|
7777
|
+
hasRuntimeDefault: false;
|
|
7778
|
+
enumValues: [string, ...string[]];
|
|
7779
|
+
baseColumn: never;
|
|
7780
|
+
identity: undefined;
|
|
7781
|
+
generated: undefined;
|
|
7782
|
+
}, {}, {}>;
|
|
7783
|
+
slug: drizzle_orm_pg_core.PgColumn<{
|
|
7784
|
+
name: "slug";
|
|
7785
|
+
tableName: "competition_showcases";
|
|
7786
|
+
dataType: "string";
|
|
7787
|
+
columnType: "PgText";
|
|
7788
|
+
data: string;
|
|
7789
|
+
driverParam: string;
|
|
7790
|
+
notNull: false;
|
|
7791
|
+
hasDefault: false;
|
|
7792
|
+
isPrimaryKey: false;
|
|
7793
|
+
isAutoincrement: false;
|
|
7794
|
+
hasRuntimeDefault: false;
|
|
7795
|
+
enumValues: [string, ...string[]];
|
|
7796
|
+
baseColumn: never;
|
|
7797
|
+
identity: undefined;
|
|
7798
|
+
generated: undefined;
|
|
7799
|
+
}, {}, {}>;
|
|
7800
|
+
name: drizzle_orm_pg_core.PgColumn<{
|
|
7801
|
+
name: "name";
|
|
7802
|
+
tableName: "competition_showcases";
|
|
7803
|
+
dataType: "string";
|
|
7804
|
+
columnType: "PgText";
|
|
7805
|
+
data: string;
|
|
7806
|
+
driverParam: string;
|
|
7807
|
+
notNull: true;
|
|
7808
|
+
hasDefault: false;
|
|
7809
|
+
isPrimaryKey: false;
|
|
7810
|
+
isAutoincrement: false;
|
|
7811
|
+
hasRuntimeDefault: false;
|
|
7812
|
+
enumValues: [string, ...string[]];
|
|
7813
|
+
baseColumn: never;
|
|
7814
|
+
identity: undefined;
|
|
7815
|
+
generated: undefined;
|
|
7816
|
+
}, {}, {}>;
|
|
7817
|
+
createdAt: drizzle_orm_pg_core.PgColumn<{
|
|
7818
|
+
name: "created_at";
|
|
7819
|
+
tableName: "competition_showcases";
|
|
7820
|
+
dataType: "date";
|
|
7821
|
+
columnType: "PgTimestamp";
|
|
7822
|
+
data: Date;
|
|
7823
|
+
driverParam: string;
|
|
7824
|
+
notNull: true;
|
|
7825
|
+
hasDefault: true;
|
|
7826
|
+
isPrimaryKey: false;
|
|
7827
|
+
isAutoincrement: false;
|
|
7828
|
+
hasRuntimeDefault: false;
|
|
7829
|
+
enumValues: undefined;
|
|
7830
|
+
baseColumn: never;
|
|
7831
|
+
identity: undefined;
|
|
7832
|
+
generated: undefined;
|
|
7833
|
+
}, {}, {}>;
|
|
7834
|
+
updatedAt: drizzle_orm_pg_core.PgColumn<{
|
|
7835
|
+
name: "updated_at";
|
|
7836
|
+
tableName: "competition_showcases";
|
|
7837
|
+
dataType: "date";
|
|
7838
|
+
columnType: "PgTimestamp";
|
|
7839
|
+
data: Date;
|
|
7840
|
+
driverParam: string;
|
|
7841
|
+
notNull: true;
|
|
7842
|
+
hasDefault: true;
|
|
7843
|
+
isPrimaryKey: false;
|
|
7844
|
+
isAutoincrement: false;
|
|
7845
|
+
hasRuntimeDefault: false;
|
|
7846
|
+
enumValues: undefined;
|
|
7847
|
+
baseColumn: never;
|
|
7848
|
+
identity: undefined;
|
|
7849
|
+
generated: undefined;
|
|
7850
|
+
}, {}, {}>;
|
|
7851
|
+
};
|
|
7852
|
+
dialect: "pg";
|
|
7853
|
+
}>;
|
|
7854
|
+
|
|
7609
7855
|
declare const nominees: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
7610
7856
|
name: "nominees";
|
|
7611
7857
|
schema: undefined;
|
|
@@ -7983,6 +8229,23 @@ declare const projects: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
7983
8229
|
identity: undefined;
|
|
7984
8230
|
generated: undefined;
|
|
7985
8231
|
}, {}, {}>;
|
|
8232
|
+
slug: drizzle_orm_pg_core.PgColumn<{
|
|
8233
|
+
name: "slug";
|
|
8234
|
+
tableName: "projects";
|
|
8235
|
+
dataType: "string";
|
|
8236
|
+
columnType: "PgText";
|
|
8237
|
+
data: string;
|
|
8238
|
+
driverParam: string;
|
|
8239
|
+
notNull: true;
|
|
8240
|
+
hasDefault: false;
|
|
8241
|
+
isPrimaryKey: false;
|
|
8242
|
+
isAutoincrement: false;
|
|
8243
|
+
hasRuntimeDefault: false;
|
|
8244
|
+
enumValues: [string, ...string[]];
|
|
8245
|
+
baseColumn: never;
|
|
8246
|
+
identity: undefined;
|
|
8247
|
+
generated: undefined;
|
|
8248
|
+
}, {}, {}>;
|
|
7986
8249
|
name: drizzle_orm_pg_core.PgColumn<{
|
|
7987
8250
|
name: "name";
|
|
7988
8251
|
tableName: "projects";
|
|
@@ -8068,6 +8331,23 @@ declare const projects: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
8068
8331
|
identity: undefined;
|
|
8069
8332
|
generated: undefined;
|
|
8070
8333
|
}, {}, {}>;
|
|
8334
|
+
externalUrl: drizzle_orm_pg_core.PgColumn<{
|
|
8335
|
+
name: "external_url";
|
|
8336
|
+
tableName: "projects";
|
|
8337
|
+
dataType: "string";
|
|
8338
|
+
columnType: "PgText";
|
|
8339
|
+
data: string;
|
|
8340
|
+
driverParam: string;
|
|
8341
|
+
notNull: false;
|
|
8342
|
+
hasDefault: false;
|
|
8343
|
+
isPrimaryKey: false;
|
|
8344
|
+
isAutoincrement: false;
|
|
8345
|
+
hasRuntimeDefault: false;
|
|
8346
|
+
enumValues: [string, ...string[]];
|
|
8347
|
+
baseColumn: never;
|
|
8348
|
+
identity: undefined;
|
|
8349
|
+
generated: undefined;
|
|
8350
|
+
}, {}, {}>;
|
|
8071
8351
|
teamName: drizzle_orm_pg_core.PgColumn<{
|
|
8072
8352
|
name: "team_name";
|
|
8073
8353
|
tableName: "projects";
|
|
@@ -8157,6 +8437,99 @@ declare const projects: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
8157
8437
|
dialect: "pg";
|
|
8158
8438
|
}>;
|
|
8159
8439
|
|
|
8440
|
+
declare const projectVotes: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
8441
|
+
name: "project_votes";
|
|
8442
|
+
schema: undefined;
|
|
8443
|
+
columns: {
|
|
8444
|
+
id: drizzle_orm_pg_core.PgColumn<{
|
|
8445
|
+
name: "id";
|
|
8446
|
+
tableName: "project_votes";
|
|
8447
|
+
dataType: "string";
|
|
8448
|
+
columnType: "PgText";
|
|
8449
|
+
data: string;
|
|
8450
|
+
driverParam: string;
|
|
8451
|
+
notNull: true;
|
|
8452
|
+
hasDefault: false;
|
|
8453
|
+
isPrimaryKey: true;
|
|
8454
|
+
isAutoincrement: false;
|
|
8455
|
+
hasRuntimeDefault: false;
|
|
8456
|
+
enumValues: [string, ...string[]];
|
|
8457
|
+
baseColumn: never;
|
|
8458
|
+
identity: undefined;
|
|
8459
|
+
generated: undefined;
|
|
8460
|
+
}, {}, {}>;
|
|
8461
|
+
userId: drizzle_orm_pg_core.PgColumn<{
|
|
8462
|
+
name: "user_id";
|
|
8463
|
+
tableName: "project_votes";
|
|
8464
|
+
dataType: "string";
|
|
8465
|
+
columnType: "PgText";
|
|
8466
|
+
data: string;
|
|
8467
|
+
driverParam: string;
|
|
8468
|
+
notNull: true;
|
|
8469
|
+
hasDefault: false;
|
|
8470
|
+
isPrimaryKey: false;
|
|
8471
|
+
isAutoincrement: false;
|
|
8472
|
+
hasRuntimeDefault: false;
|
|
8473
|
+
enumValues: [string, ...string[]];
|
|
8474
|
+
baseColumn: never;
|
|
8475
|
+
identity: undefined;
|
|
8476
|
+
generated: undefined;
|
|
8477
|
+
}, {}, {}>;
|
|
8478
|
+
projectId: drizzle_orm_pg_core.PgColumn<{
|
|
8479
|
+
name: "project_id";
|
|
8480
|
+
tableName: "project_votes";
|
|
8481
|
+
dataType: "string";
|
|
8482
|
+
columnType: "PgText";
|
|
8483
|
+
data: string;
|
|
8484
|
+
driverParam: string;
|
|
8485
|
+
notNull: true;
|
|
8486
|
+
hasDefault: false;
|
|
8487
|
+
isPrimaryKey: false;
|
|
8488
|
+
isAutoincrement: false;
|
|
8489
|
+
hasRuntimeDefault: false;
|
|
8490
|
+
enumValues: [string, ...string[]];
|
|
8491
|
+
baseColumn: never;
|
|
8492
|
+
identity: undefined;
|
|
8493
|
+
generated: undefined;
|
|
8494
|
+
}, {}, {}>;
|
|
8495
|
+
type: drizzle_orm_pg_core.PgColumn<{
|
|
8496
|
+
name: "type";
|
|
8497
|
+
tableName: "project_votes";
|
|
8498
|
+
dataType: "string";
|
|
8499
|
+
columnType: "PgEnumColumn";
|
|
8500
|
+
data: "IGI" | "AIC";
|
|
8501
|
+
driverParam: string;
|
|
8502
|
+
notNull: true;
|
|
8503
|
+
hasDefault: false;
|
|
8504
|
+
isPrimaryKey: false;
|
|
8505
|
+
isAutoincrement: false;
|
|
8506
|
+
hasRuntimeDefault: false;
|
|
8507
|
+
enumValues: ["IGI", "AIC"];
|
|
8508
|
+
baseColumn: never;
|
|
8509
|
+
identity: undefined;
|
|
8510
|
+
generated: undefined;
|
|
8511
|
+
}, {}, {}>;
|
|
8512
|
+
createdAt: drizzle_orm_pg_core.PgColumn<{
|
|
8513
|
+
name: "created_at";
|
|
8514
|
+
tableName: "project_votes";
|
|
8515
|
+
dataType: "date";
|
|
8516
|
+
columnType: "PgTimestamp";
|
|
8517
|
+
data: Date;
|
|
8518
|
+
driverParam: string;
|
|
8519
|
+
notNull: true;
|
|
8520
|
+
hasDefault: true;
|
|
8521
|
+
isPrimaryKey: false;
|
|
8522
|
+
isAutoincrement: false;
|
|
8523
|
+
hasRuntimeDefault: false;
|
|
8524
|
+
enumValues: undefined;
|
|
8525
|
+
baseColumn: never;
|
|
8526
|
+
identity: undefined;
|
|
8527
|
+
generated: undefined;
|
|
8528
|
+
}, {}, {}>;
|
|
8529
|
+
};
|
|
8530
|
+
dialect: "pg";
|
|
8531
|
+
}>;
|
|
8532
|
+
|
|
8160
8533
|
declare const exhibitors: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
8161
8534
|
name: "exhibitors";
|
|
8162
8535
|
schema: undefined;
|
|
@@ -9845,4 +10218,4 @@ declare const posts: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
9845
10218
|
dialect: "pg";
|
|
9846
10219
|
}>;
|
|
9847
10220
|
|
|
9848
|
-
export { adWatchHistories, adWatchHistoriesRelations, adWatchSessions, adWatchSessionsRelations, advertisements, announcements, announcementsRelations, articles, boothRewardTypeEnum, cartStatusEnum, comments, companyExhibitionVacancies, companyExhibitionVacanciesRelations, companyExhibitions, cvClinicClaims, cvClinicVouchers, dashboardNotificationUserReads, dashboardNotificationUserReadsRelations, dashboardNotifications, detentionStateEnum, eventDates, eventDatesRelations, eventEnum, eventRegistrations, eventRegistrationsRelations, events, eventsRelations, exhibitors, exploreITFunfacts, feedbackOptions, feedbackOptionsRelations, feedbackQuestions, feedbackQuestionsRelations, feedbackSubmissions, feedbackSubmissionsRelations, feedbacks, feedbacksRelations, fileTypeEnum, gameDevelopers, gameDevelopersRelations, gameOrientationEnum, gameRules, gameRulesRelations, games, gamesRelations, grandLaunchingRegistrations, grandLaunchingRegistrationsRelations, interviewApplicantStatusEnum, knowEventSourceEnum, leaderboardHistories, likes, mainEventBoothRewards, mainEventMiniQuizAttempts, mainEventMiniQuizAttemptsRelations, mainEventMiniQuizQuestionOptions, mainEventMiniQuizQuestionOptionsRelations, mainEventMiniQuizQuestions, mainEventMiniQuizQuestionsRelations, mainEventMiniQuizzes, mainEventMiniQuizzesRelations, mainEventOccupationTypeEnum, mainEventRegistrations, mainEventRegistrationsRelations, members, membersRelations, miniQuizAttempts, miniQuizAttemptsRelations, miniQuizQuestions, miniQuizQuestionsRelations, miniQuizzes, miniQuizzesRelations, nomineeTypeEnum, nomineeVotes, nominees, playgroundExpenseHistories, playgroundExpenseHistoriesRelations, playgroundRewardHistories, playgroundRewardHistoriesRelations, playgroundTokens, playgroundTokensRelations, posts, programCodeEnum, programRegistrations, programRegistrationsRelations, programTaskExtraDescriptions, programTaskExtraDescriptionsRelations, programTaskSubmissions, programTaskSubmissionsRelations, programTaskTypeEnum, programTasks, programTasksRelations, programTypeEnum, programs, programsRelations, projects, questionTypeEnum, rewardTypeEnum, singleParticipants, singleParticipantsRelations, submissionStatusEnum, submissionStatusEnumLocal, supermarketItemOptions, supermarketItemOptionsRelations, supermarketItems, supermarketUserCartItems, supermarketUserCartItemsRelations, supermarketUserCarts, supermarketUserCartsRelations, teamStatusEnum, teams, teamsRelations, tokenTypeEnum, userPlayGameHistories, userPlayGameHistoriesRelations, userPlaygroundDetentions, userPlaygrounds, userProfiles, userProfilesRelations, users, vacancyJobTypeEnum, walkInInterviewApplicants, walkInInterviewApplicantsRelations, walkInInterviewCompanies, walkInInterviewCompaniesRelations, walkInInterviewCompanySlots, walkInInterviewCompanySlotsRelations, xcelerateRegistrations, xcelerateRegistrationsRelations, xcelerateWorkshopTaskSubmissions, xcelerateWorkshopTaskSubmissionsRelations, xcelerateWorkshopTasks };
|
|
10221
|
+
export { adWatchHistories, adWatchHistoriesRelations, adWatchSessions, adWatchSessionsRelations, advertisements, announcements, announcementsRelations, articles, boothRewardTypeEnum, cartStatusEnum, comments, companyExhibitionVacancies, companyExhibitionVacanciesRelations, companyExhibitions, competitionShowcases, cvClinicClaims, cvClinicVouchers, dashboardNotificationUserReads, dashboardNotificationUserReadsRelations, dashboardNotifications, detentionStateEnum, eventDates, eventDatesRelations, eventEnum, eventRegistrations, eventRegistrationsRelations, events, eventsRelations, exhibitors, exploreITFunfacts, feedbackOptions, feedbackOptionsRelations, feedbackQuestions, feedbackQuestionsRelations, feedbackSubmissions, feedbackSubmissionsRelations, feedbacks, feedbacksRelations, fileTypeEnum, gameDevelopers, gameDevelopersRelations, gameOrientationEnum, gameRules, gameRulesRelations, games, gamesRelations, grandLaunchingRegistrations, grandLaunchingRegistrationsRelations, interviewApplicantStatusEnum, knowEventSourceEnum, leaderboardHistories, likes, mainEventBoothRewards, mainEventMiniQuizAttempts, mainEventMiniQuizAttemptsRelations, mainEventMiniQuizQuestionOptions, mainEventMiniQuizQuestionOptionsRelations, mainEventMiniQuizQuestions, mainEventMiniQuizQuestionsRelations, mainEventMiniQuizzes, mainEventMiniQuizzesRelations, mainEventOccupationTypeEnum, mainEventRegistrations, mainEventRegistrationsRelations, members, membersRelations, miniQuizAttempts, miniQuizAttemptsRelations, miniQuizQuestions, miniQuizQuestionsRelations, miniQuizzes, miniQuizzesRelations, nomineeTypeEnum, nomineeVotes, nominees, playgroundExpenseHistories, playgroundExpenseHistoriesRelations, playgroundRewardHistories, playgroundRewardHistoriesRelations, playgroundTokens, playgroundTokensRelations, posts, programCodeEnum, programRegistrations, programRegistrationsRelations, programTaskExtraDescriptions, programTaskExtraDescriptionsRelations, programTaskSubmissions, programTaskSubmissionsRelations, programTaskTypeEnum, programTasks, programTasksRelations, programTypeEnum, programs, programsRelations, projectVotes, projects, questionTypeEnum, rewardTypeEnum, singleParticipants, singleParticipantsRelations, submissionStatusEnum, submissionStatusEnumLocal, supermarketItemOptions, supermarketItemOptionsRelations, supermarketItems, supermarketUserCartItems, supermarketUserCartItemsRelations, supermarketUserCarts, supermarketUserCartsRelations, teamStatusEnum, teams, teamsRelations, tokenTypeEnum, userPlayGameHistories, userPlayGameHistoriesRelations, userPlaygroundDetentions, userPlaygrounds, userProfiles, userProfilesRelations, users, vacancyJobTypeEnum, walkInInterviewApplicants, walkInInterviewApplicantsRelations, walkInInterviewCompanies, walkInInterviewCompaniesRelations, walkInInterviewCompanySlots, walkInInterviewCompanySlotsRelations, xcelerateRegistrations, xcelerateRegistrationsRelations, xcelerateWorkshopTaskSubmissions, xcelerateWorkshopTaskSubmissionsRelations, xcelerateWorkshopTasks };
|
package/dist/index.mjs
CHANGED
|
@@ -741,19 +741,32 @@ var xcelerateWorkshopTaskSubmissionsRelations = relations20(
|
|
|
741
741
|
|
|
742
742
|
// announcements/announcement.schema.ts
|
|
743
743
|
import { relations as relations21 } from "drizzle-orm";
|
|
744
|
-
import { index as index21, pgTable as pgTable23, text as text23, timestamp as timestamp23 } from "drizzle-orm/pg-core";
|
|
744
|
+
import { boolean as boolean5, index as index21, pgTable as pgTable23, text as text23, timestamp as timestamp23 } from "drizzle-orm/pg-core";
|
|
745
745
|
var announcements = pgTable23(
|
|
746
746
|
"announcements",
|
|
747
747
|
{
|
|
748
748
|
id: text23("id").primaryKey(),
|
|
749
|
-
programId: text23("program_id").notNull().references(() => programs.id, { onDelete: "cascade" }),
|
|
750
749
|
title: text23("title").notNull(),
|
|
751
750
|
description: text23("description"),
|
|
751
|
+
message: text23("message"),
|
|
752
|
+
status: text23("status").notNull().default("published"),
|
|
753
|
+
programId: text23("program_id").references(() => programs.id, { onDelete: "cascade" }),
|
|
754
|
+
isAdmin: boolean5("is_admin").notNull().default(false),
|
|
755
|
+
audienceAcademy: boolean5("audience_academy").notNull().default(false),
|
|
756
|
+
audienceCompetition: boolean5("audience_competition").notNull().default(false),
|
|
757
|
+
emailEnabled: boolean5("email_enabled").notNull().default(false),
|
|
758
|
+
emailSent: boolean5("email_sent").notNull().default(false),
|
|
759
|
+
emailSentAt: timestamp23("email_sent_at"),
|
|
760
|
+
emailError: text23("email_error"),
|
|
752
761
|
deletedAt: timestamp23("deleted_at"),
|
|
753
762
|
createdAt: timestamp23("created_at").notNull().defaultNow(),
|
|
754
763
|
updatedAt: timestamp23("updated_at").notNull().defaultNow()
|
|
755
764
|
},
|
|
756
|
-
(table) => [
|
|
765
|
+
(table) => [
|
|
766
|
+
index21("announcements_program_id_idx").on(table.programId),
|
|
767
|
+
index21("announcements_status_idx").on(table.status),
|
|
768
|
+
index21("announcements_is_admin_idx").on(table.isAdmin)
|
|
769
|
+
]
|
|
757
770
|
);
|
|
758
771
|
var announcementsRelations = relations21(announcements, ({ one }) => ({
|
|
759
772
|
program: one(programs, {
|
|
@@ -790,7 +803,7 @@ var userPlaygrounds = pgTable25(
|
|
|
790
803
|
);
|
|
791
804
|
|
|
792
805
|
// playground/user-playground-detention.schema.ts
|
|
793
|
-
import { boolean as
|
|
806
|
+
import { boolean as boolean6, index as index23, pgTable as pgTable26, text as text25, timestamp as timestamp26, uuid as uuid3 } from "drizzle-orm/pg-core";
|
|
794
807
|
var userPlaygroundDetentions = pgTable26(
|
|
795
808
|
"userPlaygroundDetentions",
|
|
796
809
|
{
|
|
@@ -799,7 +812,7 @@ var userPlaygroundDetentions = pgTable26(
|
|
|
799
812
|
description: text25("description").notNull(),
|
|
800
813
|
penaltyPoint: text25("penalty_point").notNull(),
|
|
801
814
|
state: detentionStateEnum("state").notNull(),
|
|
802
|
-
isRead:
|
|
815
|
+
isRead: boolean6("is_read").notNull().default(false),
|
|
803
816
|
deletedAt: timestamp26("deleted_at"),
|
|
804
817
|
createdAt: timestamp26("created_at").notNull().defaultNow(),
|
|
805
818
|
updatedAt: timestamp26("updated_at").notNull().defaultNow()
|
|
@@ -809,7 +822,7 @@ var userPlaygroundDetentions = pgTable26(
|
|
|
809
822
|
|
|
810
823
|
// games/game.schema.ts
|
|
811
824
|
import { relations as relations26 } from "drizzle-orm";
|
|
812
|
-
import { boolean as
|
|
825
|
+
import { boolean as boolean9, pgTable as pgTable31, text as text29, timestamp as timestamp31 } from "drizzle-orm/pg-core";
|
|
813
826
|
|
|
814
827
|
// games/game-developer.schema.ts
|
|
815
828
|
import { relations as relations22 } from "drizzle-orm";
|
|
@@ -852,17 +865,17 @@ var gameRulesRelations = relations23(gameRules, ({ one }) => ({
|
|
|
852
865
|
|
|
853
866
|
// games/user-play-game-history.schema.ts
|
|
854
867
|
import { relations as relations25 } from "drizzle-orm";
|
|
855
|
-
import { boolean as
|
|
868
|
+
import { boolean as boolean8, pgTable as pgTable30, text as text28, timestamp as timestamp30, uuid as uuid5 } from "drizzle-orm/pg-core";
|
|
856
869
|
|
|
857
870
|
// tokens/playground-token.schema.ts
|
|
858
871
|
import { relations as relations24 } from "drizzle-orm";
|
|
859
|
-
import { boolean as
|
|
872
|
+
import { boolean as boolean7, pgTable as pgTable29, timestamp as timestamp29, uuid as uuid4, varchar } from "drizzle-orm/pg-core";
|
|
860
873
|
var playgroundTokens = pgTable29("playgroundTokens", {
|
|
861
874
|
id: uuid4("id").primaryKey().defaultRandom(),
|
|
862
875
|
userPlaygroundId: uuid4("userPlaygroundId").references(() => userPlaygrounds.id, { onDelete: "cascade" }).notNull(),
|
|
863
876
|
code: varchar("code", { length: 6 }).notNull().unique(),
|
|
864
877
|
tokenType: tokenTypeEnum("tokenType").notNull(),
|
|
865
|
-
isUsed:
|
|
878
|
+
isUsed: boolean7("isUsed").notNull().default(false),
|
|
866
879
|
usedAt: timestamp29("usedAt"),
|
|
867
880
|
deletedAt: timestamp29("deletedAt"),
|
|
868
881
|
createdAt: timestamp29("createdAt").notNull().defaultNow(),
|
|
@@ -883,7 +896,7 @@ var userPlayGameHistories = pgTable30("userPlayGameHistories", {
|
|
|
883
896
|
tokenUsedId: uuid5("tokenUsedId").references(() => playgroundTokens.id, {
|
|
884
897
|
onDelete: "set null"
|
|
885
898
|
}),
|
|
886
|
-
isFinished:
|
|
899
|
+
isFinished: boolean8("isFinished").notNull().default(false),
|
|
887
900
|
finishedAt: timestamp30("finishedAt"),
|
|
888
901
|
createdAt: timestamp30("createdAt").notNull().defaultNow(),
|
|
889
902
|
updatedAt: timestamp30("updatedAt").notNull().defaultNow()
|
|
@@ -911,7 +924,7 @@ var games = pgTable31("games", {
|
|
|
911
924
|
arcadeUrl: text29("arcadeUrl"),
|
|
912
925
|
description: text29("description"),
|
|
913
926
|
rules: text29("rules").array(),
|
|
914
|
-
isGetPoint:
|
|
927
|
+
isGetPoint: boolean9("isGetPoint").notNull().default(false),
|
|
915
928
|
orientation: gameOrientationEnum("orientation").notNull().default("VERTICAL"),
|
|
916
929
|
createdAt: timestamp31("createdAt").notNull().defaultNow(),
|
|
917
930
|
updatedAt: timestamp31("updatedAt").notNull().defaultNow()
|
|
@@ -984,11 +997,11 @@ import { relations as relations29 } from "drizzle-orm";
|
|
|
984
997
|
import { pgTable as pgTable35, text as text33, timestamp as timestamp35, uuid as uuid8 } from "drizzle-orm/pg-core";
|
|
985
998
|
|
|
986
999
|
// ads/advertisement.schema.ts
|
|
987
|
-
import { boolean as
|
|
1000
|
+
import { boolean as boolean10, integer as integer5, pgTable as pgTable34, text as text32, timestamp as timestamp34 } from "drizzle-orm/pg-core";
|
|
988
1001
|
var advertisements = pgTable34("advertisements", {
|
|
989
1002
|
id: text32("id").primaryKey(),
|
|
990
1003
|
contentUrl: text32("contentUrl").notNull(),
|
|
991
|
-
isVideo:
|
|
1004
|
+
isVideo: boolean10("isVideo").notNull().default(false),
|
|
992
1005
|
contentLength: integer5("contentLength"),
|
|
993
1006
|
createdAt: timestamp34("createdAt").notNull().defaultNow(),
|
|
994
1007
|
updatedAt: timestamp34("updatedAt").notNull().defaultNow()
|
|
@@ -1087,7 +1100,7 @@ import { index as index28, pgTable as pgTable39, text as text37, timestamp as ti
|
|
|
1087
1100
|
|
|
1088
1101
|
// quiz/main-event-mini-quiz-question-option.schema.ts
|
|
1089
1102
|
import { relations as relations32 } from "drizzle-orm";
|
|
1090
|
-
import { boolean as
|
|
1103
|
+
import { boolean as boolean11, index as index27, pgTable as pgTable38, text as text36, timestamp as timestamp38 } from "drizzle-orm/pg-core";
|
|
1091
1104
|
var mainEventMiniQuizQuestionOptions = pgTable38(
|
|
1092
1105
|
"mainEventMiniQuizQuestionOptions",
|
|
1093
1106
|
{
|
|
@@ -1096,7 +1109,7 @@ var mainEventMiniQuizQuestionOptions = pgTable38(
|
|
|
1096
1109
|
onDelete: "cascade"
|
|
1097
1110
|
}),
|
|
1098
1111
|
option: text36("option").notNull(),
|
|
1099
|
-
isAnswer:
|
|
1112
|
+
isAnswer: boolean11("isAnswer").notNull().default(false),
|
|
1100
1113
|
createdAt: timestamp38("createdAt").notNull().defaultNow(),
|
|
1101
1114
|
updatedAt: timestamp38("updatedAt").notNull().defaultNow()
|
|
1102
1115
|
},
|
|
@@ -1187,14 +1200,14 @@ var miniQuizAttemptsRelations = relations35(miniQuizAttempts, ({ one }) => ({
|
|
|
1187
1200
|
|
|
1188
1201
|
// quiz/mini-quiz-question.schema.ts
|
|
1189
1202
|
import { relations as relations36 } from "drizzle-orm";
|
|
1190
|
-
import { boolean as
|
|
1203
|
+
import { boolean as boolean12, index as index31, pgTable as pgTable42, text as text40, timestamp as timestamp42 } from "drizzle-orm/pg-core";
|
|
1191
1204
|
var miniQuizQuestions = pgTable42(
|
|
1192
1205
|
"miniQuizQuestions",
|
|
1193
1206
|
{
|
|
1194
1207
|
id: text40("id").primaryKey(),
|
|
1195
1208
|
quizId: text40("quizId").references(() => miniQuizzes.id, { onDelete: "cascade" }),
|
|
1196
1209
|
question: text40("question").notNull(),
|
|
1197
|
-
isTrue:
|
|
1210
|
+
isTrue: boolean12("isTrue"),
|
|
1198
1211
|
createdAt: timestamp42("createdAt").notNull().defaultNow(),
|
|
1199
1212
|
updatedAt: timestamp42("updatedAt").notNull().defaultNow()
|
|
1200
1213
|
},
|
|
@@ -1243,7 +1256,7 @@ var companyExhibitions = pgTable44("companyExhibitions", {
|
|
|
1243
1256
|
|
|
1244
1257
|
// exhibition/company-exhibition-vacancies.schema.ts
|
|
1245
1258
|
import { relations as relations38 } from "drizzle-orm";
|
|
1246
|
-
import { boolean as
|
|
1259
|
+
import { boolean as boolean13, index as index33, pgTable as pgTable45, text as text43, timestamp as timestamp45 } from "drizzle-orm/pg-core";
|
|
1247
1260
|
var companyExhibitionVacancies = pgTable45(
|
|
1248
1261
|
"companyExhibitionVacancies",
|
|
1249
1262
|
{
|
|
@@ -1261,7 +1274,7 @@ var companyExhibitionVacancies = pgTable45(
|
|
|
1261
1274
|
responsibilities: text43("responsibilities"),
|
|
1262
1275
|
requirements: text43("requirements"),
|
|
1263
1276
|
vacancyUrl: text43("vacancyUrl"),
|
|
1264
|
-
isOpen:
|
|
1277
|
+
isOpen: boolean13("isOpen").notNull().default(true),
|
|
1265
1278
|
createdAt: timestamp45("createdAt").notNull().defaultNow(),
|
|
1266
1279
|
updatedAt: timestamp45("updatedAt").notNull().defaultNow()
|
|
1267
1280
|
},
|
|
@@ -1286,7 +1299,7 @@ import { index as index35, pgTable as pgTable48, text as text46, timestamp as ti
|
|
|
1286
1299
|
|
|
1287
1300
|
// jobfair/walk-in-interview-company-slot.schema.ts
|
|
1288
1301
|
import { relations as relations40 } from "drizzle-orm";
|
|
1289
|
-
import { boolean as
|
|
1302
|
+
import { boolean as boolean14, index as index34, pgTable as pgTable47, text as text45, timestamp as timestamp47 } from "drizzle-orm/pg-core";
|
|
1290
1303
|
|
|
1291
1304
|
// jobfair/walk-in-interview-company.schema.ts
|
|
1292
1305
|
import { relations as relations39 } from "drizzle-orm";
|
|
@@ -1324,7 +1337,7 @@ var walkInInterviewCompanySlots = pgTable47(
|
|
|
1324
1337
|
}),
|
|
1325
1338
|
startTime: timestamp47("startTime").notNull(),
|
|
1326
1339
|
endTime: timestamp47("endTime").notNull(),
|
|
1327
|
-
isAvailable:
|
|
1340
|
+
isAvailable: boolean14("isAvailable").notNull().default(true),
|
|
1328
1341
|
createdAt: timestamp47("createdAt").notNull().defaultNow(),
|
|
1329
1342
|
updatedAt: timestamp47("updatedAt").notNull().defaultNow()
|
|
1330
1343
|
},
|
|
@@ -1399,119 +1412,157 @@ var cvClinicClaims = pgTable50("cv_clinic_claims", {
|
|
|
1399
1412
|
updatedAt: timestamp49("updated_at").notNull().defaultNow()
|
|
1400
1413
|
});
|
|
1401
1414
|
|
|
1402
|
-
// voting/
|
|
1403
|
-
import {
|
|
1404
|
-
var
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
createdAt: timestamp50("created_at").notNull().defaultNow(),
|
|
1416
|
-
updatedAt: timestamp50("updated_at").notNull().defaultNow()
|
|
1417
|
-
});
|
|
1415
|
+
// voting/competition-showcase.schema.ts
|
|
1416
|
+
import { pgTable as pgTable51, text as text49, timestamp as timestamp50, uniqueIndex as uniqueIndex3 } from "drizzle-orm/pg-core";
|
|
1417
|
+
var competitionShowcases = pgTable51(
|
|
1418
|
+
"competition_showcases",
|
|
1419
|
+
{
|
|
1420
|
+
id: text49("id").primaryKey(),
|
|
1421
|
+
slug: text49("slug").unique(),
|
|
1422
|
+
name: text49("name").notNull(),
|
|
1423
|
+
createdAt: timestamp50("created_at").notNull().defaultNow(),
|
|
1424
|
+
updatedAt: timestamp50("updated_at").notNull().defaultNow()
|
|
1425
|
+
},
|
|
1426
|
+
(table) => [uniqueIndex3("competition_showcases_name_unique").on(table.name)]
|
|
1427
|
+
);
|
|
1418
1428
|
|
|
1419
|
-
// voting/nominee
|
|
1420
|
-
import { pgTable as pgTable52, text as text50, timestamp as timestamp51 } from "drizzle-orm/pg-core";
|
|
1421
|
-
var
|
|
1429
|
+
// voting/nominee.schema.ts
|
|
1430
|
+
import { boolean as boolean15, integer as integer8, pgTable as pgTable52, text as text50, timestamp as timestamp51 } from "drizzle-orm/pg-core";
|
|
1431
|
+
var nominees = pgTable52("nominees", {
|
|
1422
1432
|
id: text50("id").primaryKey(),
|
|
1423
|
-
userId: text50("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1424
1433
|
type: nomineeTypeEnum("type").notNull(),
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1434
|
+
name: text50("name").notNull(),
|
|
1435
|
+
developer: text50("developer").notNull(),
|
|
1436
|
+
description: text50("description"),
|
|
1437
|
+
thumbnailUrl: text50("thumbnail_url"),
|
|
1438
|
+
url: text50("url"),
|
|
1439
|
+
isActive: boolean15("is_active").notNull().default(true),
|
|
1440
|
+
point: integer8("point").notNull().default(0),
|
|
1441
|
+
deletedAt: timestamp51("deleted_at"),
|
|
1428
1442
|
createdAt: timestamp51("created_at").notNull().defaultNow(),
|
|
1429
1443
|
updatedAt: timestamp51("updated_at").notNull().defaultNow()
|
|
1430
1444
|
});
|
|
1431
1445
|
|
|
1432
|
-
// voting/
|
|
1433
|
-
import {
|
|
1434
|
-
var
|
|
1446
|
+
// voting/nominee-vote.schema.ts
|
|
1447
|
+
import { pgTable as pgTable53, text as text51, timestamp as timestamp52 } from "drizzle-orm/pg-core";
|
|
1448
|
+
var nomineeVotes = pgTable53("nominee_votes", {
|
|
1435
1449
|
id: text51("id").primaryKey(),
|
|
1436
|
-
|
|
1450
|
+
userId: text51("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1437
1451
|
type: nomineeTypeEnum("type").notNull(),
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
teamName: text51("team_name").notNull(),
|
|
1442
|
-
votes: integer9("votes").notNull().default(0),
|
|
1443
|
-
deletedAt: timestamp52("deleted_at"),
|
|
1452
|
+
firstChoiceNomineeId: text51("first_choice_nominee_id").notNull().references(() => nominees.id, { onDelete: "cascade" }),
|
|
1453
|
+
secondChoiceNomineeId: text51("second_choice_nominee_id").notNull().references(() => nominees.id, { onDelete: "cascade" }),
|
|
1454
|
+
thirdChoiceNomineeId: text51("third_choice_nominee_id").notNull().references(() => nominees.id, { onDelete: "cascade" }),
|
|
1444
1455
|
createdAt: timestamp52("created_at").notNull().defaultNow(),
|
|
1445
1456
|
updatedAt: timestamp52("updated_at").notNull().defaultNow()
|
|
1446
1457
|
});
|
|
1447
1458
|
|
|
1448
|
-
//
|
|
1449
|
-
import {
|
|
1450
|
-
var
|
|
1451
|
-
"
|
|
1459
|
+
// voting/project.schema.ts
|
|
1460
|
+
import { integer as integer9, pgTable as pgTable54, text as text52, timestamp as timestamp53, uniqueIndex as uniqueIndex4 } from "drizzle-orm/pg-core";
|
|
1461
|
+
var projects = pgTable54(
|
|
1462
|
+
"projects",
|
|
1452
1463
|
{
|
|
1453
1464
|
id: text52("id").primaryKey(),
|
|
1454
|
-
|
|
1465
|
+
slug: text52("slug").notNull().unique(),
|
|
1455
1466
|
name: text52("name").notNull(),
|
|
1456
|
-
|
|
1457
|
-
|
|
1467
|
+
type: nomineeTypeEnum("type").notNull(),
|
|
1468
|
+
imageUrl: text52("image_url"),
|
|
1469
|
+
description: text52("description"),
|
|
1470
|
+
youtubeUrl: text52("youtube_url"),
|
|
1471
|
+
externalUrl: text52("external_url"),
|
|
1472
|
+
teamName: text52("team_name").notNull(),
|
|
1473
|
+
votes: integer9("votes").notNull().default(0),
|
|
1458
1474
|
deletedAt: timestamp53("deleted_at"),
|
|
1459
1475
|
createdAt: timestamp53("created_at").notNull().defaultNow(),
|
|
1460
1476
|
updatedAt: timestamp53("updated_at").notNull().defaultNow()
|
|
1461
1477
|
},
|
|
1478
|
+
(table) => [uniqueIndex4("projects_type_name_unique").on(table.type, table.name)]
|
|
1479
|
+
);
|
|
1480
|
+
|
|
1481
|
+
// voting/project-vote.schema.ts
|
|
1482
|
+
import { index as index36, pgTable as pgTable55, text as text53, timestamp as timestamp54, uniqueIndex as uniqueIndex5 } from "drizzle-orm/pg-core";
|
|
1483
|
+
var projectVotes = pgTable55(
|
|
1484
|
+
"project_votes",
|
|
1485
|
+
{
|
|
1486
|
+
id: text53("id").primaryKey(),
|
|
1487
|
+
userId: text53("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1488
|
+
projectId: text53("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
1489
|
+
type: nomineeTypeEnum("type").notNull(),
|
|
1490
|
+
createdAt: timestamp54("created_at").notNull().defaultNow()
|
|
1491
|
+
},
|
|
1492
|
+
(table) => [
|
|
1493
|
+
uniqueIndex5("project_votes_user_project_unique").on(table.userId, table.projectId),
|
|
1494
|
+
index36("project_votes_user_type_idx").on(table.userId, table.type),
|
|
1495
|
+
index36("project_votes_project_idx").on(table.projectId)
|
|
1496
|
+
]
|
|
1497
|
+
);
|
|
1498
|
+
|
|
1499
|
+
// booth/exhibitor.schema.ts
|
|
1500
|
+
import { index as index37, pgTable as pgTable56, text as text54, timestamp as timestamp55 } from "drizzle-orm/pg-core";
|
|
1501
|
+
var exhibitors = pgTable56(
|
|
1502
|
+
"exhibitors",
|
|
1503
|
+
{
|
|
1504
|
+
id: text54("id").primaryKey(),
|
|
1505
|
+
companyName: text54("company_name").notNull(),
|
|
1506
|
+
name: text54("name").notNull(),
|
|
1507
|
+
email: text54("email").notNull(),
|
|
1508
|
+
phoneNumber: text54("phone_number").notNull(),
|
|
1509
|
+
deletedAt: timestamp55("deleted_at"),
|
|
1510
|
+
createdAt: timestamp55("created_at").notNull().defaultNow(),
|
|
1511
|
+
updatedAt: timestamp55("updated_at").notNull().defaultNow()
|
|
1512
|
+
},
|
|
1462
1513
|
(table) => [
|
|
1463
|
-
|
|
1464
|
-
|
|
1514
|
+
index37("exhibitors_company_name_idx").on(table.companyName),
|
|
1515
|
+
index37("exhibitors_email_idx").on(table.email)
|
|
1465
1516
|
]
|
|
1466
1517
|
);
|
|
1467
1518
|
|
|
1468
1519
|
// booth/main-event-booth-reward.schema.ts
|
|
1469
|
-
import { index as
|
|
1470
|
-
var mainEventBoothRewards =
|
|
1520
|
+
import { index as index38, integer as integer10, pgTable as pgTable57, text as text55, timestamp as timestamp56 } from "drizzle-orm/pg-core";
|
|
1521
|
+
var mainEventBoothRewards = pgTable57(
|
|
1471
1522
|
"main_event_booth_rewards",
|
|
1472
1523
|
{
|
|
1473
|
-
id:
|
|
1474
|
-
companyName:
|
|
1475
|
-
description:
|
|
1524
|
+
id: text55("id").primaryKey(),
|
|
1525
|
+
companyName: text55("company_name").notNull(),
|
|
1526
|
+
description: text55("description").notNull(),
|
|
1476
1527
|
points: integer10("points").notNull(),
|
|
1477
1528
|
type: boothRewardTypeEnum("type").notNull(),
|
|
1478
|
-
createdAt:
|
|
1479
|
-
updatedAt:
|
|
1529
|
+
createdAt: timestamp56("created_at").notNull().defaultNow(),
|
|
1530
|
+
updatedAt: timestamp56("updated_at").notNull().defaultNow()
|
|
1480
1531
|
},
|
|
1481
1532
|
(table) => [
|
|
1482
|
-
|
|
1483
|
-
|
|
1533
|
+
index38("main_event_booth_rewards_company_name_idx").on(table.companyName),
|
|
1534
|
+
index38("main_event_booth_rewards_type_idx").on(table.type)
|
|
1484
1535
|
]
|
|
1485
1536
|
);
|
|
1486
1537
|
|
|
1487
1538
|
// supermarket/supermarket-item.schema.ts
|
|
1488
|
-
import { decimal, integer as integer11, pgTable as
|
|
1489
|
-
var supermarketItems =
|
|
1490
|
-
id:
|
|
1491
|
-
name:
|
|
1492
|
-
description:
|
|
1539
|
+
import { decimal, integer as integer11, pgTable as pgTable58, text as text56, timestamp as timestamp57 } from "drizzle-orm/pg-core";
|
|
1540
|
+
var supermarketItems = pgTable58("supermarket_items", {
|
|
1541
|
+
id: text56("id").primaryKey(),
|
|
1542
|
+
name: text56("name").notNull(),
|
|
1543
|
+
description: text56("description"),
|
|
1493
1544
|
price: decimal("price", { precision: 10, scale: 2 }).notNull(),
|
|
1494
1545
|
stock: integer11("stock").notNull().default(0),
|
|
1495
|
-
category:
|
|
1496
|
-
imageUrl:
|
|
1497
|
-
deletedAt:
|
|
1546
|
+
category: text56("category").notNull(),
|
|
1547
|
+
imageUrl: text56("image_url"),
|
|
1548
|
+
deletedAt: timestamp57("deleted_at"),
|
|
1498
1549
|
// Soft delete
|
|
1499
|
-
createdAt:
|
|
1500
|
-
updatedAt:
|
|
1550
|
+
createdAt: timestamp57("created_at").notNull().defaultNow(),
|
|
1551
|
+
updatedAt: timestamp57("updated_at").notNull().defaultNow()
|
|
1501
1552
|
});
|
|
1502
1553
|
|
|
1503
1554
|
// supermarket/supermarket-item-option.schema.ts
|
|
1504
1555
|
import { relations as relations42 } from "drizzle-orm";
|
|
1505
|
-
import { pgTable as
|
|
1506
|
-
var supermarketItemOptions =
|
|
1507
|
-
id:
|
|
1508
|
-
itemId:
|
|
1509
|
-
key:
|
|
1510
|
-
value:
|
|
1511
|
-
deletedAt:
|
|
1556
|
+
import { pgTable as pgTable59, text as text57, timestamp as timestamp58 } from "drizzle-orm/pg-core";
|
|
1557
|
+
var supermarketItemOptions = pgTable59("supermarket_item_options", {
|
|
1558
|
+
id: text57("id").primaryKey(),
|
|
1559
|
+
itemId: text57("item_id").notNull().references(() => supermarketItems.id, { onDelete: "cascade" }),
|
|
1560
|
+
key: text57("key").notNull(),
|
|
1561
|
+
value: text57("value").notNull(),
|
|
1562
|
+
deletedAt: timestamp58("deleted_at"),
|
|
1512
1563
|
// Soft delete
|
|
1513
|
-
createdAt:
|
|
1514
|
-
updatedAt:
|
|
1564
|
+
createdAt: timestamp58("created_at").notNull().defaultNow(),
|
|
1565
|
+
updatedAt: timestamp58("updated_at").notNull().defaultNow()
|
|
1515
1566
|
});
|
|
1516
1567
|
var supermarketItemOptionsRelations = relations42(supermarketItemOptions, ({ one }) => ({
|
|
1517
1568
|
item: one(supermarketItems, {
|
|
@@ -1522,22 +1573,22 @@ var supermarketItemOptionsRelations = relations42(supermarketItemOptions, ({ one
|
|
|
1522
1573
|
|
|
1523
1574
|
// supermarket/supermarket-user-cart.schema.ts
|
|
1524
1575
|
import { relations as relations44 } from "drizzle-orm";
|
|
1525
|
-
import { decimal as decimal2, pgTable as
|
|
1576
|
+
import { decimal as decimal2, pgTable as pgTable61, text as text59, timestamp as timestamp60 } from "drizzle-orm/pg-core";
|
|
1526
1577
|
|
|
1527
1578
|
// supermarket/supermarket-user-cart-item.schema.ts
|
|
1528
1579
|
import { relations as relations43 } from "drizzle-orm";
|
|
1529
|
-
import { integer as integer12, json as json3, pgTable as
|
|
1530
|
-
var supermarketUserCartItems =
|
|
1531
|
-
id:
|
|
1532
|
-
cartId:
|
|
1533
|
-
itemId:
|
|
1580
|
+
import { integer as integer12, json as json3, pgTable as pgTable60, text as text58, timestamp as timestamp59 } from "drizzle-orm/pg-core";
|
|
1581
|
+
var supermarketUserCartItems = pgTable60("supermarket_user_cart_items", {
|
|
1582
|
+
id: text58("id").primaryKey(),
|
|
1583
|
+
cartId: text58("cart_id").notNull().references(() => supermarketUserCarts.id, { onDelete: "cascade" }),
|
|
1584
|
+
itemId: text58("item_id").notNull().references(() => supermarketItems.id, { onDelete: "cascade" }),
|
|
1534
1585
|
quantity: integer12("quantity").notNull().default(1),
|
|
1535
1586
|
selectedOptions: json3("selected_options"),
|
|
1536
1587
|
// JSON to store selected option key-value pairs
|
|
1537
|
-
deletedAt:
|
|
1588
|
+
deletedAt: timestamp59("deleted_at"),
|
|
1538
1589
|
// Soft delete
|
|
1539
|
-
createdAt:
|
|
1540
|
-
updatedAt:
|
|
1590
|
+
createdAt: timestamp59("created_at").notNull().defaultNow(),
|
|
1591
|
+
updatedAt: timestamp59("updated_at").notNull().defaultNow()
|
|
1541
1592
|
});
|
|
1542
1593
|
var supermarketUserCartItemsRelations = relations43(supermarketUserCartItems, ({ one }) => ({
|
|
1543
1594
|
cart: one(supermarketUserCarts, {
|
|
@@ -1551,79 +1602,79 @@ var supermarketUserCartItemsRelations = relations43(supermarketUserCartItems, ({
|
|
|
1551
1602
|
}));
|
|
1552
1603
|
|
|
1553
1604
|
// supermarket/supermarket-user-cart.schema.ts
|
|
1554
|
-
var supermarketUserCarts =
|
|
1555
|
-
id:
|
|
1556
|
-
userId:
|
|
1605
|
+
var supermarketUserCarts = pgTable61("supermarket_user_carts", {
|
|
1606
|
+
id: text59("id").primaryKey(),
|
|
1607
|
+
userId: text59("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1557
1608
|
totalPrice: decimal2("total_price", { precision: 10, scale: 2 }).notNull(),
|
|
1558
1609
|
status: cartStatusEnum("status").notNull().default("PENDING"),
|
|
1559
|
-
deletedAt:
|
|
1610
|
+
deletedAt: timestamp60("deleted_at"),
|
|
1560
1611
|
// Soft delete
|
|
1561
|
-
createdAt:
|
|
1562
|
-
updatedAt:
|
|
1612
|
+
createdAt: timestamp60("created_at").notNull().defaultNow(),
|
|
1613
|
+
updatedAt: timestamp60("updated_at").notNull().defaultNow()
|
|
1563
1614
|
});
|
|
1564
1615
|
var supermarketUserCartsRelations = relations44(supermarketUserCarts, ({ many }) => ({
|
|
1565
1616
|
cartItems: many(supermarketUserCartItems)
|
|
1566
1617
|
}));
|
|
1567
1618
|
|
|
1568
1619
|
// content/article.schema.ts
|
|
1569
|
-
import { pgTable as
|
|
1570
|
-
var articles =
|
|
1571
|
-
id:
|
|
1572
|
-
title:
|
|
1573
|
-
description:
|
|
1574
|
-
url:
|
|
1575
|
-
imageUrl:
|
|
1576
|
-
deletedAt:
|
|
1577
|
-
createdAt:
|
|
1578
|
-
updatedAt:
|
|
1620
|
+
import { pgTable as pgTable62, text as text60, timestamp as timestamp61 } from "drizzle-orm/pg-core";
|
|
1621
|
+
var articles = pgTable62("articles", {
|
|
1622
|
+
id: text60("id").primaryKey(),
|
|
1623
|
+
title: text60("title").notNull(),
|
|
1624
|
+
description: text60("description"),
|
|
1625
|
+
url: text60("url").notNull(),
|
|
1626
|
+
imageUrl: text60("image_url"),
|
|
1627
|
+
deletedAt: timestamp61("deleted_at"),
|
|
1628
|
+
createdAt: timestamp61("created_at").notNull().defaultNow(),
|
|
1629
|
+
updatedAt: timestamp61("updated_at").notNull().defaultNow()
|
|
1579
1630
|
});
|
|
1580
1631
|
|
|
1581
1632
|
// content/explore-it-funfact.schema.ts
|
|
1582
|
-
import { pgTable as
|
|
1583
|
-
var exploreITFunfacts =
|
|
1584
|
-
id:
|
|
1585
|
-
title:
|
|
1586
|
-
content:
|
|
1587
|
-
imageUrl:
|
|
1588
|
-
deletedAt:
|
|
1589
|
-
createdAt:
|
|
1590
|
-
updatedAt:
|
|
1633
|
+
import { pgTable as pgTable63, text as text61, timestamp as timestamp62 } from "drizzle-orm/pg-core";
|
|
1634
|
+
var exploreITFunfacts = pgTable63("explore_it_funfacts", {
|
|
1635
|
+
id: text61("id").primaryKey(),
|
|
1636
|
+
title: text61("title").notNull(),
|
|
1637
|
+
content: text61("content").notNull(),
|
|
1638
|
+
imageUrl: text61("image_url"),
|
|
1639
|
+
deletedAt: timestamp62("deleted_at"),
|
|
1640
|
+
createdAt: timestamp62("created_at").notNull().defaultNow(),
|
|
1641
|
+
updatedAt: timestamp62("updated_at").notNull().defaultNow()
|
|
1591
1642
|
});
|
|
1592
1643
|
|
|
1593
1644
|
// notifications/dashboard-notification.schema.ts
|
|
1594
|
-
import { boolean as
|
|
1595
|
-
var dashboardNotifications =
|
|
1645
|
+
import { boolean as boolean16, index as index39, pgTable as pgTable64, text as text62, timestamp as timestamp63 } from "drizzle-orm/pg-core";
|
|
1646
|
+
var dashboardNotifications = pgTable64(
|
|
1596
1647
|
"dashboard_notifications",
|
|
1597
1648
|
{
|
|
1598
|
-
id:
|
|
1599
|
-
title:
|
|
1600
|
-
content:
|
|
1601
|
-
isPrivate:
|
|
1602
|
-
type:
|
|
1649
|
+
id: text62("id").primaryKey(),
|
|
1650
|
+
title: text62("title").notNull(),
|
|
1651
|
+
content: text62("content").notNull(),
|
|
1652
|
+
isPrivate: boolean16("is_private").notNull().default(false),
|
|
1653
|
+
type: text62("type").notNull(),
|
|
1603
1654
|
programCode: programCodeEnum("program_code"),
|
|
1604
|
-
deletedAt:
|
|
1605
|
-
createdAt:
|
|
1606
|
-
updatedAt:
|
|
1655
|
+
deletedAt: timestamp63("deleted_at"),
|
|
1656
|
+
createdAt: timestamp63("created_at").notNull().defaultNow(),
|
|
1657
|
+
updatedAt: timestamp63("updated_at").notNull().defaultNow()
|
|
1607
1658
|
},
|
|
1608
|
-
(table) => [
|
|
1659
|
+
(table) => [index39("dashboard_notifications_program_code_idx").on(table.programCode)]
|
|
1609
1660
|
);
|
|
1610
1661
|
|
|
1611
1662
|
// notifications/dashboard-notification-user-read.schema.ts
|
|
1612
1663
|
import { relations as relations45 } from "drizzle-orm";
|
|
1613
|
-
import { boolean as
|
|
1614
|
-
var dashboardNotificationUserReads =
|
|
1664
|
+
import { boolean as boolean17, index as index40, pgTable as pgTable65, text as text63, timestamp as timestamp64 } from "drizzle-orm/pg-core";
|
|
1665
|
+
var dashboardNotificationUserReads = pgTable65(
|
|
1615
1666
|
"dashboard_notification_user_reads",
|
|
1616
1667
|
{
|
|
1617
|
-
id:
|
|
1618
|
-
userId:
|
|
1619
|
-
notificationId:
|
|
1620
|
-
isOpened:
|
|
1621
|
-
createdAt:
|
|
1622
|
-
updatedAt:
|
|
1668
|
+
id: text63("id").primaryKey(),
|
|
1669
|
+
userId: text63("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1670
|
+
notificationId: text63("notification_id").notNull().references(() => dashboardNotifications.id, { onDelete: "cascade" }),
|
|
1671
|
+
isOpened: boolean17("is_opened").notNull().default(false),
|
|
1672
|
+
createdAt: timestamp64("created_at").notNull().defaultNow(),
|
|
1673
|
+
updatedAt: timestamp64("updated_at").notNull().defaultNow()
|
|
1623
1674
|
},
|
|
1624
1675
|
(table) => [
|
|
1625
|
-
|
|
1626
|
-
|
|
1676
|
+
index40("dashboard_notification_user_reads_user_id_idx").on(table.userId),
|
|
1677
|
+
index40("dashboard_notification_user_reads_notification_id_idx").on(table.notificationId)
|
|
1627
1678
|
]
|
|
1628
1679
|
);
|
|
1629
1680
|
var dashboardNotificationUserReadsRelations = relations45(
|
|
@@ -1641,32 +1692,32 @@ var dashboardNotificationUserReadsRelations = relations45(
|
|
|
1641
1692
|
);
|
|
1642
1693
|
|
|
1643
1694
|
// post-example/comment.schema.ts
|
|
1644
|
-
import { pgTable as
|
|
1645
|
-
var comments =
|
|
1695
|
+
import { pgTable as pgTable66, text as text64, uuid as uuid10 } from "drizzle-orm/pg-core";
|
|
1696
|
+
var comments = pgTable66("comments", {
|
|
1646
1697
|
id: uuid10("id").primaryKey(),
|
|
1647
1698
|
postId: uuid10("post_id").notNull(),
|
|
1648
|
-
content:
|
|
1649
|
-
author:
|
|
1699
|
+
content: text64("content").notNull(),
|
|
1700
|
+
author: text64("author").notNull()
|
|
1650
1701
|
});
|
|
1651
1702
|
|
|
1652
1703
|
// post-example/like.schema.ts
|
|
1653
|
-
import { pgTable as
|
|
1654
|
-
var likes =
|
|
1704
|
+
import { pgTable as pgTable67, text as text65, uuid as uuid11 } from "drizzle-orm/pg-core";
|
|
1705
|
+
var likes = pgTable67("likes", {
|
|
1655
1706
|
id: uuid11("id").primaryKey(),
|
|
1656
1707
|
postId: uuid11("post_id").notNull(),
|
|
1657
|
-
userName:
|
|
1708
|
+
userName: text65("user_name").notNull()
|
|
1658
1709
|
});
|
|
1659
1710
|
|
|
1660
1711
|
// post-example/post.schema.ts
|
|
1661
|
-
import { pgTable as
|
|
1662
|
-
var posts =
|
|
1712
|
+
import { pgTable as pgTable68, text as text66, timestamp as timestamp65, uuid as uuid12 } from "drizzle-orm/pg-core";
|
|
1713
|
+
var posts = pgTable68("posts", {
|
|
1663
1714
|
id: uuid12("id").primaryKey(),
|
|
1664
1715
|
// Primary Key UUID
|
|
1665
|
-
title:
|
|
1666
|
-
content:
|
|
1667
|
-
author:
|
|
1668
|
-
createdAt:
|
|
1669
|
-
updatedAt:
|
|
1716
|
+
title: text66("title").notNull(),
|
|
1717
|
+
content: text66("content").notNull(),
|
|
1718
|
+
author: text66("author").notNull(),
|
|
1719
|
+
createdAt: timestamp65("created_at").defaultNow().notNull(),
|
|
1720
|
+
updatedAt: timestamp65("updated_at").defaultNow().notNull()
|
|
1670
1721
|
});
|
|
1671
1722
|
export {
|
|
1672
1723
|
adWatchHistories,
|
|
@@ -1683,6 +1734,7 @@ export {
|
|
|
1683
1734
|
companyExhibitionVacancies,
|
|
1684
1735
|
companyExhibitionVacanciesRelations,
|
|
1685
1736
|
companyExhibitions,
|
|
1737
|
+
competitionShowcases,
|
|
1686
1738
|
cvClinicClaims,
|
|
1687
1739
|
cvClinicVouchers,
|
|
1688
1740
|
dashboardNotificationUserReads,
|
|
@@ -1763,6 +1815,7 @@ export {
|
|
|
1763
1815
|
programTypeEnum,
|
|
1764
1816
|
programs,
|
|
1765
1817
|
programsRelations,
|
|
1818
|
+
projectVotes,
|
|
1766
1819
|
projects,
|
|
1767
1820
|
questionTypeEnum,
|
|
1768
1821
|
rewardTypeEnum,
|