@compfest-18/oppenheimer-schema 0.0.5-develop.c0e6c23 → 0.0.6-develop.b15478b
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 +160 -7
- package/dist/index.mjs +40 -27
- 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<{
|
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
|
},
|
|
@@ -1400,7 +1413,7 @@ var cvClinicClaims = pgTable50("cv_clinic_claims", {
|
|
|
1400
1413
|
});
|
|
1401
1414
|
|
|
1402
1415
|
// voting/nominee.schema.ts
|
|
1403
|
-
import { boolean as
|
|
1416
|
+
import { boolean as boolean15, integer as integer8, pgTable as pgTable51, text as text49, timestamp as timestamp50 } from "drizzle-orm/pg-core";
|
|
1404
1417
|
var nominees = pgTable51("nominees", {
|
|
1405
1418
|
id: text49("id").primaryKey(),
|
|
1406
1419
|
type: nomineeTypeEnum("type").notNull(),
|
|
@@ -1409,7 +1422,7 @@ var nominees = pgTable51("nominees", {
|
|
|
1409
1422
|
description: text49("description"),
|
|
1410
1423
|
thumbnailUrl: text49("thumbnail_url"),
|
|
1411
1424
|
url: text49("url"),
|
|
1412
|
-
isActive:
|
|
1425
|
+
isActive: boolean15("is_active").notNull().default(true),
|
|
1413
1426
|
point: integer8("point").notNull().default(0),
|
|
1414
1427
|
deletedAt: timestamp50("deleted_at"),
|
|
1415
1428
|
createdAt: timestamp50("created_at").notNull().defaultNow(),
|
|
@@ -1591,14 +1604,14 @@ var exploreITFunfacts = pgTable61("explore_it_funfacts", {
|
|
|
1591
1604
|
});
|
|
1592
1605
|
|
|
1593
1606
|
// notifications/dashboard-notification.schema.ts
|
|
1594
|
-
import { boolean as
|
|
1607
|
+
import { boolean as boolean16, index as index38, pgTable as pgTable62, text as text60, timestamp as timestamp61 } from "drizzle-orm/pg-core";
|
|
1595
1608
|
var dashboardNotifications = pgTable62(
|
|
1596
1609
|
"dashboard_notifications",
|
|
1597
1610
|
{
|
|
1598
1611
|
id: text60("id").primaryKey(),
|
|
1599
1612
|
title: text60("title").notNull(),
|
|
1600
1613
|
content: text60("content").notNull(),
|
|
1601
|
-
isPrivate:
|
|
1614
|
+
isPrivate: boolean16("is_private").notNull().default(false),
|
|
1602
1615
|
type: text60("type").notNull(),
|
|
1603
1616
|
programCode: programCodeEnum("program_code"),
|
|
1604
1617
|
deletedAt: timestamp61("deleted_at"),
|
|
@@ -1610,14 +1623,14 @@ var dashboardNotifications = pgTable62(
|
|
|
1610
1623
|
|
|
1611
1624
|
// notifications/dashboard-notification-user-read.schema.ts
|
|
1612
1625
|
import { relations as relations45 } from "drizzle-orm";
|
|
1613
|
-
import { boolean as
|
|
1626
|
+
import { boolean as boolean17, index as index39, pgTable as pgTable63, text as text61, timestamp as timestamp62 } from "drizzle-orm/pg-core";
|
|
1614
1627
|
var dashboardNotificationUserReads = pgTable63(
|
|
1615
1628
|
"dashboard_notification_user_reads",
|
|
1616
1629
|
{
|
|
1617
1630
|
id: text61("id").primaryKey(),
|
|
1618
1631
|
userId: text61("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1619
1632
|
notificationId: text61("notification_id").notNull().references(() => dashboardNotifications.id, { onDelete: "cascade" }),
|
|
1620
|
-
isOpened:
|
|
1633
|
+
isOpened: boolean17("is_opened").notNull().default(false),
|
|
1621
1634
|
createdAt: timestamp62("created_at").notNull().defaultNow(),
|
|
1622
1635
|
updatedAt: timestamp62("updated_at").notNull().defaultNow()
|
|
1623
1636
|
},
|