@compfest-18/oppenheimer-schema 0.0.6-staging.df88d67 → 0.0.8

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 CHANGED
@@ -115,6 +115,23 @@ declare const users: drizzle_orm_pg_core.PgTableWithColumns<{
115
115
  identity: undefined;
116
116
  generated: undefined;
117
117
  }, {}, {}>;
118
+ isNameCustom: drizzle_orm_pg_core.PgColumn<{
119
+ name: "is_name_custom";
120
+ tableName: "users";
121
+ dataType: "boolean";
122
+ columnType: "PgBoolean";
123
+ data: boolean;
124
+ driverParam: boolean;
125
+ notNull: true;
126
+ hasDefault: true;
127
+ isPrimaryKey: false;
128
+ isAutoincrement: false;
129
+ hasRuntimeDefault: false;
130
+ enumValues: undefined;
131
+ baseColumn: never;
132
+ identity: undefined;
133
+ generated: undefined;
134
+ }, {}, {}>;
118
135
  createdAt: drizzle_orm_pg_core.PgColumn<{
119
136
  name: "createdAt";
120
137
  tableName: "users";
@@ -3381,6 +3398,40 @@ declare const programTasks: drizzle_orm_pg_core.PgTableWithColumns<{
3381
3398
  }, {}, {}, drizzle_orm.ColumnBuilderExtraConfig>;
3382
3399
  size: undefined;
3383
3400
  }>;
3401
+ isOptional: drizzle_orm_pg_core.PgColumn<{
3402
+ name: "is_optional";
3403
+ tableName: "program_tasks";
3404
+ dataType: "boolean";
3405
+ columnType: "PgBoolean";
3406
+ data: boolean;
3407
+ driverParam: boolean;
3408
+ notNull: true;
3409
+ hasDefault: true;
3410
+ isPrimaryKey: false;
3411
+ isAutoincrement: false;
3412
+ hasRuntimeDefault: false;
3413
+ enumValues: undefined;
3414
+ baseColumn: never;
3415
+ identity: undefined;
3416
+ generated: undefined;
3417
+ }, {}, {}>;
3418
+ isRegistrationTask: drizzle_orm_pg_core.PgColumn<{
3419
+ name: "is_registration_task";
3420
+ tableName: "program_tasks";
3421
+ dataType: "boolean";
3422
+ columnType: "PgBoolean";
3423
+ data: boolean;
3424
+ driverParam: boolean;
3425
+ notNull: true;
3426
+ hasDefault: true;
3427
+ isPrimaryKey: false;
3428
+ isAutoincrement: false;
3429
+ hasRuntimeDefault: false;
3430
+ enumValues: undefined;
3431
+ baseColumn: never;
3432
+ identity: undefined;
3433
+ generated: undefined;
3434
+ }, {}, {}>;
3384
3435
  deletedAt: drizzle_orm_pg_core.PgColumn<{
3385
3436
  name: "deleted_at";
3386
3437
  tableName: "program_tasks";
package/dist/index.mjs CHANGED
@@ -92,13 +92,16 @@ var cartStatusEnum = pgEnum("cart_status", [
92
92
 
93
93
  // auth/user.schema.ts
94
94
  import { sql } from "drizzle-orm";
95
- import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
95
+ import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core";
96
96
  var users = pgTable("users", {
97
97
  id: text("id").primaryKey(),
98
98
  email: text("email").notNull().unique(),
99
99
  name: text("name").notNull(),
100
100
  image: text("image"),
101
101
  referralCode: text("referral_code").notNull().unique().default(sql`substring(replace(gen_random_uuid()::text, '-', ''), 1, 8)`),
102
+ // Once true, SSO sync (login-time) no longer overwrites `name` with the
103
+ // SSO-provided value — the user has set a COMPFEST-local display name.
104
+ isNameCustom: boolean("is_name_custom").notNull().default(false),
102
105
  createdAt: timestamp("createdAt").notNull().defaultNow(),
103
106
  updatedAt: timestamp("updatedAt").notNull().defaultNow()
104
107
  });
@@ -306,7 +309,7 @@ var eventsRelations = relations7(events, ({ many }) => ({
306
309
 
307
310
  // feedback/feedback.schema.ts
308
311
  import { relations as relations11 } from "drizzle-orm";
309
- import { boolean, index as index10, pgTable as pgTable12, text as text12, timestamp as timestamp12 } from "drizzle-orm/pg-core";
312
+ import { boolean as boolean2, index as index10, pgTable as pgTable12, text as text12, timestamp as timestamp12 } from "drizzle-orm/pg-core";
310
313
 
311
314
  // feedback/feedback-question.schema.ts
312
315
  import { relations as relations9 } from "drizzle-orm";
@@ -388,7 +391,7 @@ var feedbacks = pgTable12(
388
391
  {
389
392
  id: text12("id").primaryKey(),
390
393
  eventId: text12("event_id").notNull().unique().references(() => events.id, { onDelete: "cascade" }),
391
- isOpen: boolean("is_open").notNull().default(true),
394
+ isOpen: boolean2("is_open").notNull().default(true),
392
395
  deletedAt: timestamp12("deleted_at"),
393
396
  createdAt: timestamp12("created_at").notNull().defaultNow(),
394
397
  updatedAt: timestamp12("updated_at").notNull().defaultNow()
@@ -402,15 +405,15 @@ var feedbacksRelations = relations11(feedbacks, ({ many }) => ({
402
405
 
403
406
  // programs/member.schema.ts
404
407
  import { relations as relations16 } from "drizzle-orm";
405
- import { boolean as boolean4, index as index15, pgTable as pgTable17, text as text17, timestamp as timestamp17 } from "drizzle-orm/pg-core";
408
+ import { boolean as boolean5, index as index15, pgTable as pgTable17, text as text17, timestamp as timestamp17 } from "drizzle-orm/pg-core";
406
409
 
407
410
  // programs/team.schema.ts
408
411
  import { relations as relations15 } from "drizzle-orm";
409
- import { boolean as boolean3, index as index14, pgTable as pgTable16, text as text16, timestamp as timestamp16 } from "drizzle-orm/pg-core";
412
+ import { boolean as boolean4, index as index14, pgTable as pgTable16, text as text16, timestamp as timestamp16 } from "drizzle-orm/pg-core";
410
413
 
411
414
  // programs/program.schema.ts
412
415
  import { relations as relations14 } from "drizzle-orm";
413
- import { boolean as boolean2, index as index13, integer, jsonb, pgTable as pgTable15, text as text15, timestamp as timestamp15 } from "drizzle-orm/pg-core";
416
+ import { boolean as boolean3, index as index13, integer, jsonb, pgTable as pgTable15, text as text15, timestamp as timestamp15 } from "drizzle-orm/pg-core";
414
417
 
415
418
  // programs/program-registration.schema.ts
416
419
  import { relations as relations12 } from "drizzle-orm";
@@ -485,7 +488,7 @@ var programs = pgTable15(
485
488
  allowedEducationLevel: text15("allowed_education_level"),
486
489
  minMember: integer("min_member"),
487
490
  maxMember: integer("max_member"),
488
- isAbleToRegisterAsTeam: boolean2("is_able_to_register_as_team").notNull().default(false),
491
+ isAbleToRegisterAsTeam: boolean3("is_able_to_register_as_team").notNull().default(false),
489
492
  paymentBills: jsonb("payment_bills"),
490
493
  startDate: timestamp15("start_date"),
491
494
  extendStartDate: timestamp15("extend_start_date"),
@@ -523,7 +526,7 @@ var teams = pgTable16(
523
526
  code: text16("code").notNull().unique(),
524
527
  status: teamStatusEnum("status").notNull().default("WAITING_FOR_VERIFICATION"),
525
528
  notes: text16("notes"),
526
- isPublic: boolean3("is_public").notNull().default(false),
529
+ isPublic: boolean4("is_public").notNull().default(false),
527
530
  deletedAt: timestamp16("deleted_at"),
528
531
  createdAt: timestamp16("created_at").notNull().defaultNow(),
529
532
  updatedAt: timestamp16("updated_at").notNull().defaultNow()
@@ -549,7 +552,7 @@ var members = pgTable17(
549
552
  id: text17("id").primaryKey(),
550
553
  userId: text17("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
551
554
  teamId: text17("team_id").notNull().references(() => teams.id, { onDelete: "cascade" }),
552
- isLeader: boolean4("is_leader").notNull().default(false),
555
+ isLeader: boolean5("is_leader").notNull().default(false),
553
556
  deletedAt: timestamp17("deleted_at"),
554
557
  createdAt: timestamp17("created_at").notNull().defaultNow(),
555
558
  updatedAt: timestamp17("updated_at").notNull().defaultNow()
@@ -601,8 +604,8 @@ var teamJoinRequestsRelations = relations17(teamJoinRequests, ({ one }) => ({
601
604
  }));
602
605
 
603
606
  // tasks/competition-payment-proof.schema.ts
604
- import { relations as relations18 } from "drizzle-orm";
605
- import { index as index17, pgTable as pgTable19, text as text19, timestamp as timestamp19 } from "drizzle-orm/pg-core";
607
+ import { relations as relations18, sql as sql2 } from "drizzle-orm";
608
+ import { index as index17, pgTable as pgTable19, text as text19, timestamp as timestamp19, uniqueIndex } from "drizzle-orm/pg-core";
606
609
  var competitionPaymentProofs = pgTable19(
607
610
  "competition_payment_proofs",
608
611
  {
@@ -619,7 +622,9 @@ var competitionPaymentProofs = pgTable19(
619
622
  (table) => [
620
623
  index17("competition_payment_proofs_program_id_idx").on(table.programId),
621
624
  index17("competition_payment_proofs_team_id_idx").on(table.teamId),
622
- index17("competition_payment_proofs_user_id_idx").on(table.userId)
625
+ index17("competition_payment_proofs_user_id_idx").on(table.userId),
626
+ uniqueIndex("competition_payment_proofs_program_team_uniq").on(table.programId, table.teamId).where(sql2`${table.teamId} IS NOT NULL`),
627
+ uniqueIndex("competition_payment_proofs_program_user_uniq").on(table.programId, table.userId).where(sql2`${table.userId} IS NOT NULL`)
623
628
  ]
624
629
  );
625
630
  var competitionPaymentProofsRelations = relations18(competitionPaymentProofs, ({ one }) => ({
@@ -639,7 +644,7 @@ var competitionPaymentProofsRelations = relations18(competitionPaymentProofs, ({
639
644
 
640
645
  // tasks/program-task.schema.ts
641
646
  import { relations as relations19 } from "drizzle-orm";
642
- import { index as index18, pgTable as pgTable20, text as text20, timestamp as timestamp20 } from "drizzle-orm/pg-core";
647
+ import { boolean as boolean6, index as index18, pgTable as pgTable20, text as text20, timestamp as timestamp20 } from "drizzle-orm/pg-core";
643
648
  var programTasks = pgTable20(
644
649
  "program_tasks",
645
650
  {
@@ -651,6 +656,8 @@ var programTasks = pgTable20(
651
656
  guideBookUrl: text20("guide_book_url"),
652
657
  type: programTaskTypeEnum("type").notNull(),
653
658
  acceptedFileTypes: fileTypeEnum("accepted_file_types").array(),
659
+ isOptional: boolean6("is_optional").notNull().default(false),
660
+ isRegistrationTask: boolean6("is_registration_task").notNull().default(false),
654
661
  deletedAt: timestamp20("deleted_at"),
655
662
  createdAt: timestamp20("created_at").notNull().defaultNow(),
656
663
  updatedAt: timestamp20("updated_at").notNull().defaultNow()
@@ -666,14 +673,14 @@ var programTasksRelations = relations19(programTasks, ({ one }) => ({
666
673
 
667
674
  // tasks/program-task-extra-description.schema.ts
668
675
  import { relations as relations20 } from "drizzle-orm";
669
- import { boolean as boolean5, index as index19, pgTable as pgTable21, text as text21, timestamp as timestamp21 } from "drizzle-orm/pg-core";
676
+ import { boolean as boolean7, index as index19, pgTable as pgTable21, text as text21, timestamp as timestamp21 } from "drizzle-orm/pg-core";
670
677
  var programTaskExtraDescriptions = pgTable21(
671
678
  "program_task_extra_descriptions",
672
679
  {
673
680
  id: text21("id").primaryKey(),
674
681
  taskId: text21("task_id").notNull().references(() => programTasks.id, { onDelete: "cascade" }),
675
682
  description: text21("description").notNull(),
676
- forProgram: boolean5("for_program").notNull().default(true),
683
+ forProgram: boolean7("for_program").notNull().default(true),
677
684
  deletedAt: timestamp21("deleted_at"),
678
685
  createdAt: timestamp21("created_at").notNull().defaultNow(),
679
686
  updatedAt: timestamp21("updated_at").notNull().defaultNow()
@@ -772,7 +779,7 @@ var xcelerateWorkshopTasks = pgTable23(
772
779
 
773
780
  // tasks/xcelerate-workshop-task-submission.schema.ts
774
781
  import { relations as relations22 } from "drizzle-orm";
775
- import { index as index22, pgTable as pgTable24, text as text24, timestamp as timestamp24, uniqueIndex } from "drizzle-orm/pg-core";
782
+ import { index as index22, pgTable as pgTable24, text as text24, timestamp as timestamp24, uniqueIndex as uniqueIndex2 } from "drizzle-orm/pg-core";
776
783
  var xcelerateWorkshopTaskSubmissions = pgTable24(
777
784
  "xcelerateWorkshopTaskSubmissions",
778
785
  {
@@ -792,7 +799,7 @@ var xcelerateWorkshopTaskSubmissions = pgTable24(
792
799
  (table) => [
793
800
  index22("xcelerate_workshop_task_submissions_task_id_idx").on(table.taskId),
794
801
  index22("xcelerate_workshop_task_submissions_user_id_idx").on(table.userId),
795
- uniqueIndex("xcelerate_workshop_task_submissions_task_user_idx").on(
802
+ uniqueIndex2("xcelerate_workshop_task_submissions_task_user_idx").on(
796
803
  table.taskId,
797
804
  table.userId
798
805
  )
@@ -814,7 +821,7 @@ var xcelerateWorkshopTaskSubmissionsRelations = relations22(
814
821
 
815
822
  // announcements/announcement.schema.ts
816
823
  import { relations as relations23 } from "drizzle-orm";
817
- import { boolean as boolean6, index as index23, pgTable as pgTable25, text as text25, timestamp as timestamp25 } from "drizzle-orm/pg-core";
824
+ import { boolean as boolean8, index as index23, pgTable as pgTable25, text as text25, timestamp as timestamp25 } from "drizzle-orm/pg-core";
818
825
  var announcements = pgTable25(
819
826
  "announcements",
820
827
  {
@@ -824,11 +831,11 @@ var announcements = pgTable25(
824
831
  message: text25("message"),
825
832
  status: text25("status").notNull().default("published"),
826
833
  programId: text25("program_id").references(() => programs.id, { onDelete: "cascade" }),
827
- isAdmin: boolean6("is_admin").notNull().default(false),
828
- audienceAcademy: boolean6("audience_academy").notNull().default(false),
829
- audienceCompetition: boolean6("audience_competition").notNull().default(false),
830
- emailEnabled: boolean6("email_enabled").notNull().default(false),
831
- emailSent: boolean6("email_sent").notNull().default(false),
834
+ isAdmin: boolean8("is_admin").notNull().default(false),
835
+ audienceAcademy: boolean8("audience_academy").notNull().default(false),
836
+ audienceCompetition: boolean8("audience_competition").notNull().default(false),
837
+ emailEnabled: boolean8("email_enabled").notNull().default(false),
838
+ emailSent: boolean8("email_sent").notNull().default(false),
832
839
  emailSentAt: timestamp25("email_sent_at"),
833
840
  emailError: text25("email_error"),
834
841
  deletedAt: timestamp25("deleted_at"),
@@ -876,7 +883,7 @@ var userPlaygrounds = pgTable27(
876
883
  );
877
884
 
878
885
  // playground/user-playground-detention.schema.ts
879
- import { boolean as boolean7, index as index25, pgTable as pgTable28, text as text27, timestamp as timestamp28, uuid as uuid3 } from "drizzle-orm/pg-core";
886
+ import { boolean as boolean9, index as index25, pgTable as pgTable28, text as text27, timestamp as timestamp28, uuid as uuid3 } from "drizzle-orm/pg-core";
880
887
  var userPlaygroundDetentions = pgTable28(
881
888
  "userPlaygroundDetentions",
882
889
  {
@@ -885,7 +892,7 @@ var userPlaygroundDetentions = pgTable28(
885
892
  description: text27("description").notNull(),
886
893
  penaltyPoint: text27("penalty_point").notNull(),
887
894
  state: detentionStateEnum("state").notNull(),
888
- isRead: boolean7("is_read").notNull().default(false),
895
+ isRead: boolean9("is_read").notNull().default(false),
889
896
  deletedAt: timestamp28("deleted_at"),
890
897
  createdAt: timestamp28("created_at").notNull().defaultNow(),
891
898
  updatedAt: timestamp28("updated_at").notNull().defaultNow()
@@ -895,7 +902,7 @@ var userPlaygroundDetentions = pgTable28(
895
902
 
896
903
  // games/game.schema.ts
897
904
  import { relations as relations28 } from "drizzle-orm";
898
- import { boolean as boolean10, pgTable as pgTable33, text as text31, timestamp as timestamp33 } from "drizzle-orm/pg-core";
905
+ import { boolean as boolean12, pgTable as pgTable33, text as text31, timestamp as timestamp33 } from "drizzle-orm/pg-core";
899
906
 
900
907
  // games/game-developer.schema.ts
901
908
  import { relations as relations24 } from "drizzle-orm";
@@ -938,17 +945,17 @@ var gameRulesRelations = relations25(gameRules, ({ one }) => ({
938
945
 
939
946
  // games/user-play-game-history.schema.ts
940
947
  import { relations as relations27 } from "drizzle-orm";
941
- import { boolean as boolean9, pgTable as pgTable32, text as text30, timestamp as timestamp32, uuid as uuid5 } from "drizzle-orm/pg-core";
948
+ import { boolean as boolean11, pgTable as pgTable32, text as text30, timestamp as timestamp32, uuid as uuid5 } from "drizzle-orm/pg-core";
942
949
 
943
950
  // tokens/playground-token.schema.ts
944
951
  import { relations as relations26 } from "drizzle-orm";
945
- import { boolean as boolean8, pgTable as pgTable31, timestamp as timestamp31, uuid as uuid4, varchar } from "drizzle-orm/pg-core";
952
+ import { boolean as boolean10, pgTable as pgTable31, timestamp as timestamp31, uuid as uuid4, varchar } from "drizzle-orm/pg-core";
946
953
  var playgroundTokens = pgTable31("playgroundTokens", {
947
954
  id: uuid4("id").primaryKey().defaultRandom(),
948
955
  userPlaygroundId: uuid4("userPlaygroundId").references(() => userPlaygrounds.id, { onDelete: "cascade" }).notNull(),
949
956
  code: varchar("code", { length: 6 }).notNull().unique(),
950
957
  tokenType: tokenTypeEnum("tokenType").notNull(),
951
- isUsed: boolean8("isUsed").notNull().default(false),
958
+ isUsed: boolean10("isUsed").notNull().default(false),
952
959
  usedAt: timestamp31("usedAt"),
953
960
  deletedAt: timestamp31("deletedAt"),
954
961
  createdAt: timestamp31("createdAt").notNull().defaultNow(),
@@ -969,7 +976,7 @@ var userPlayGameHistories = pgTable32("userPlayGameHistories", {
969
976
  tokenUsedId: uuid5("tokenUsedId").references(() => playgroundTokens.id, {
970
977
  onDelete: "set null"
971
978
  }),
972
- isFinished: boolean9("isFinished").notNull().default(false),
979
+ isFinished: boolean11("isFinished").notNull().default(false),
973
980
  finishedAt: timestamp32("finishedAt"),
974
981
  createdAt: timestamp32("createdAt").notNull().defaultNow(),
975
982
  updatedAt: timestamp32("updatedAt").notNull().defaultNow()
@@ -997,7 +1004,7 @@ var games = pgTable33("games", {
997
1004
  arcadeUrl: text31("arcadeUrl"),
998
1005
  description: text31("description"),
999
1006
  rules: text31("rules").array(),
1000
- isGetPoint: boolean10("isGetPoint").notNull().default(false),
1007
+ isGetPoint: boolean12("isGetPoint").notNull().default(false),
1001
1008
  orientation: gameOrientationEnum("orientation").notNull().default("VERTICAL"),
1002
1009
  createdAt: timestamp33("createdAt").notNull().defaultNow(),
1003
1010
  updatedAt: timestamp33("updatedAt").notNull().defaultNow()
@@ -1070,11 +1077,11 @@ import { relations as relations31 } from "drizzle-orm";
1070
1077
  import { pgTable as pgTable37, text as text35, timestamp as timestamp37, uuid as uuid8 } from "drizzle-orm/pg-core";
1071
1078
 
1072
1079
  // ads/advertisement.schema.ts
1073
- import { boolean as boolean11, integer as integer5, pgTable as pgTable36, text as text34, timestamp as timestamp36 } from "drizzle-orm/pg-core";
1080
+ import { boolean as boolean13, integer as integer5, pgTable as pgTable36, text as text34, timestamp as timestamp36 } from "drizzle-orm/pg-core";
1074
1081
  var advertisements = pgTable36("advertisements", {
1075
1082
  id: text34("id").primaryKey(),
1076
1083
  contentUrl: text34("contentUrl").notNull(),
1077
- isVideo: boolean11("isVideo").notNull().default(false),
1084
+ isVideo: boolean13("isVideo").notNull().default(false),
1078
1085
  contentLength: integer5("contentLength"),
1079
1086
  createdAt: timestamp36("createdAt").notNull().defaultNow(),
1080
1087
  updatedAt: timestamp36("updatedAt").notNull().defaultNow()
@@ -1173,7 +1180,7 @@ import { index as index30, pgTable as pgTable41, text as text39, timestamp as ti
1173
1180
 
1174
1181
  // quiz/main-event-mini-quiz-question-option.schema.ts
1175
1182
  import { relations as relations34 } from "drizzle-orm";
1176
- import { boolean as boolean12, index as index29, pgTable as pgTable40, text as text38, timestamp as timestamp40 } from "drizzle-orm/pg-core";
1183
+ import { boolean as boolean14, index as index29, pgTable as pgTable40, text as text38, timestamp as timestamp40 } from "drizzle-orm/pg-core";
1177
1184
  var mainEventMiniQuizQuestionOptions = pgTable40(
1178
1185
  "mainEventMiniQuizQuestionOptions",
1179
1186
  {
@@ -1182,7 +1189,7 @@ var mainEventMiniQuizQuestionOptions = pgTable40(
1182
1189
  onDelete: "cascade"
1183
1190
  }),
1184
1191
  option: text38("option").notNull(),
1185
- isAnswer: boolean12("isAnswer").notNull().default(false),
1192
+ isAnswer: boolean14("isAnswer").notNull().default(false),
1186
1193
  createdAt: timestamp40("createdAt").notNull().defaultNow(),
1187
1194
  updatedAt: timestamp40("updatedAt").notNull().defaultNow()
1188
1195
  },
@@ -1273,14 +1280,14 @@ var miniQuizAttemptsRelations = relations37(miniQuizAttempts, ({ one }) => ({
1273
1280
 
1274
1281
  // quiz/mini-quiz-question.schema.ts
1275
1282
  import { relations as relations38 } from "drizzle-orm";
1276
- import { boolean as boolean13, index as index33, pgTable as pgTable44, text as text42, timestamp as timestamp44 } from "drizzle-orm/pg-core";
1283
+ import { boolean as boolean15, index as index33, pgTable as pgTable44, text as text42, timestamp as timestamp44 } from "drizzle-orm/pg-core";
1277
1284
  var miniQuizQuestions = pgTable44(
1278
1285
  "miniQuizQuestions",
1279
1286
  {
1280
1287
  id: text42("id").primaryKey(),
1281
1288
  quizId: text42("quizId").references(() => miniQuizzes.id, { onDelete: "cascade" }),
1282
1289
  question: text42("question").notNull(),
1283
- isTrue: boolean13("isTrue"),
1290
+ isTrue: boolean15("isTrue"),
1284
1291
  createdAt: timestamp44("createdAt").notNull().defaultNow(),
1285
1292
  updatedAt: timestamp44("updatedAt").notNull().defaultNow()
1286
1293
  },
@@ -1329,7 +1336,7 @@ var companyExhibitions = pgTable46("companyExhibitions", {
1329
1336
 
1330
1337
  // exhibition/company-exhibition-vacancies.schema.ts
1331
1338
  import { relations as relations40 } from "drizzle-orm";
1332
- import { boolean as boolean14, index as index35, pgTable as pgTable47, text as text45, timestamp as timestamp47 } from "drizzle-orm/pg-core";
1339
+ import { boolean as boolean16, index as index35, pgTable as pgTable47, text as text45, timestamp as timestamp47 } from "drizzle-orm/pg-core";
1333
1340
  var companyExhibitionVacancies = pgTable47(
1334
1341
  "companyExhibitionVacancies",
1335
1342
  {
@@ -1347,7 +1354,7 @@ var companyExhibitionVacancies = pgTable47(
1347
1354
  responsibilities: text45("responsibilities"),
1348
1355
  requirements: text45("requirements"),
1349
1356
  vacancyUrl: text45("vacancyUrl"),
1350
- isOpen: boolean14("isOpen").notNull().default(true),
1357
+ isOpen: boolean16("isOpen").notNull().default(true),
1351
1358
  createdAt: timestamp47("createdAt").notNull().defaultNow(),
1352
1359
  updatedAt: timestamp47("updatedAt").notNull().defaultNow()
1353
1360
  },
@@ -1368,11 +1375,11 @@ var companyExhibitionVacanciesRelations = relations40(
1368
1375
 
1369
1376
  // jobfair/walk-in-interview-applicant.schema.ts
1370
1377
  import { relations as relations43 } from "drizzle-orm";
1371
- import { index as index37, pgTable as pgTable50, text as text48, timestamp as timestamp50, uniqueIndex as uniqueIndex2 } from "drizzle-orm/pg-core";
1378
+ import { index as index37, pgTable as pgTable50, text as text48, timestamp as timestamp50, uniqueIndex as uniqueIndex3 } from "drizzle-orm/pg-core";
1372
1379
 
1373
1380
  // jobfair/walk-in-interview-company-slot.schema.ts
1374
1381
  import { relations as relations42 } from "drizzle-orm";
1375
- import { boolean as boolean15, index as index36, pgTable as pgTable49, text as text47, timestamp as timestamp49 } from "drizzle-orm/pg-core";
1382
+ import { boolean as boolean17, index as index36, pgTable as pgTable49, text as text47, timestamp as timestamp49 } from "drizzle-orm/pg-core";
1376
1383
 
1377
1384
  // jobfair/walk-in-interview-company.schema.ts
1378
1385
  import { relations as relations41 } from "drizzle-orm";
@@ -1410,7 +1417,7 @@ var walkInInterviewCompanySlots = pgTable49(
1410
1417
  }),
1411
1418
  startTime: timestamp49("startTime").notNull(),
1412
1419
  endTime: timestamp49("endTime").notNull(),
1413
- isAvailable: boolean15("isAvailable").notNull().default(true),
1420
+ isAvailable: boolean17("isAvailable").notNull().default(true),
1414
1421
  createdAt: timestamp49("createdAt").notNull().defaultNow(),
1415
1422
  updatedAt: timestamp49("updatedAt").notNull().defaultNow()
1416
1423
  },
@@ -1446,7 +1453,7 @@ var walkInInterviewApplicants = pgTable50(
1446
1453
  },
1447
1454
  (table) => [
1448
1455
  index37("walkInInterviewApplicants_userId_idx").on(table.userId),
1449
- uniqueIndex2("walkInInterviewApplicants_appliedSessionId_unique_idx").on(
1456
+ uniqueIndex3("walkInInterviewApplicants_appliedSessionId_unique_idx").on(
1450
1457
  table.appliedSessionId
1451
1458
  )
1452
1459
  ]
@@ -1489,7 +1496,7 @@ var cvClinicClaims = pgTable52("cv_clinic_claims", {
1489
1496
  });
1490
1497
 
1491
1498
  // voting/competition-showcase.schema.ts
1492
- import { pgTable as pgTable53, text as text51, timestamp as timestamp52, uniqueIndex as uniqueIndex3 } from "drizzle-orm/pg-core";
1499
+ import { pgTable as pgTable53, text as text51, timestamp as timestamp52, uniqueIndex as uniqueIndex4 } from "drizzle-orm/pg-core";
1493
1500
  var competitionShowcases = pgTable53(
1494
1501
  "competition_showcases",
1495
1502
  {
@@ -1499,11 +1506,11 @@ var competitionShowcases = pgTable53(
1499
1506
  createdAt: timestamp52("created_at").notNull().defaultNow(),
1500
1507
  updatedAt: timestamp52("updated_at").notNull().defaultNow()
1501
1508
  },
1502
- (table) => [uniqueIndex3("competition_showcases_name_unique").on(table.name)]
1509
+ (table) => [uniqueIndex4("competition_showcases_name_unique").on(table.name)]
1503
1510
  );
1504
1511
 
1505
1512
  // voting/nominee.schema.ts
1506
- import { boolean as boolean16, integer as integer8, pgTable as pgTable54, text as text52, timestamp as timestamp53 } from "drizzle-orm/pg-core";
1513
+ import { boolean as boolean18, integer as integer8, pgTable as pgTable54, text as text52, timestamp as timestamp53 } from "drizzle-orm/pg-core";
1507
1514
  var nominees = pgTable54("nominees", {
1508
1515
  id: text52("id").primaryKey(),
1509
1516
  type: nomineeTypeEnum("type").notNull(),
@@ -1512,7 +1519,7 @@ var nominees = pgTable54("nominees", {
1512
1519
  description: text52("description"),
1513
1520
  thumbnailUrl: text52("thumbnail_url"),
1514
1521
  url: text52("url"),
1515
- isActive: boolean16("is_active").notNull().default(true),
1522
+ isActive: boolean18("is_active").notNull().default(true),
1516
1523
  point: integer8("point").notNull().default(0),
1517
1524
  deletedAt: timestamp53("deleted_at"),
1518
1525
  createdAt: timestamp53("created_at").notNull().defaultNow(),
@@ -1533,7 +1540,7 @@ var nomineeVotes = pgTable55("nominee_votes", {
1533
1540
  });
1534
1541
 
1535
1542
  // voting/project.schema.ts
1536
- import { integer as integer9, pgTable as pgTable56, text as text54, timestamp as timestamp55, uniqueIndex as uniqueIndex4 } from "drizzle-orm/pg-core";
1543
+ import { integer as integer9, pgTable as pgTable56, text as text54, timestamp as timestamp55, uniqueIndex as uniqueIndex5 } from "drizzle-orm/pg-core";
1537
1544
  var projects = pgTable56(
1538
1545
  "projects",
1539
1546
  {
@@ -1551,11 +1558,11 @@ var projects = pgTable56(
1551
1558
  createdAt: timestamp55("created_at").notNull().defaultNow(),
1552
1559
  updatedAt: timestamp55("updated_at").notNull().defaultNow()
1553
1560
  },
1554
- (table) => [uniqueIndex4("projects_type_name_unique").on(table.type, table.name)]
1561
+ (table) => [uniqueIndex5("projects_type_name_unique").on(table.type, table.name)]
1555
1562
  );
1556
1563
 
1557
1564
  // voting/project-vote.schema.ts
1558
- import { index as index38, pgTable as pgTable57, text as text55, timestamp as timestamp56, uniqueIndex as uniqueIndex5 } from "drizzle-orm/pg-core";
1565
+ import { index as index38, pgTable as pgTable57, text as text55, timestamp as timestamp56, uniqueIndex as uniqueIndex6 } from "drizzle-orm/pg-core";
1559
1566
  var projectVotes = pgTable57(
1560
1567
  "project_votes",
1561
1568
  {
@@ -1566,7 +1573,7 @@ var projectVotes = pgTable57(
1566
1573
  createdAt: timestamp56("created_at").notNull().defaultNow()
1567
1574
  },
1568
1575
  (table) => [
1569
- uniqueIndex5("project_votes_user_project_unique").on(table.userId, table.projectId),
1576
+ uniqueIndex6("project_votes_user_project_unique").on(table.userId, table.projectId),
1570
1577
  index38("project_votes_user_type_idx").on(table.userId, table.type),
1571
1578
  index38("project_votes_project_idx").on(table.projectId)
1572
1579
  ]
@@ -1718,14 +1725,14 @@ var exploreITFunfacts = pgTable65("explore_it_funfacts", {
1718
1725
  });
1719
1726
 
1720
1727
  // notifications/dashboard-notification.schema.ts
1721
- import { boolean as boolean17, index as index41, pgTable as pgTable66, text as text64, timestamp as timestamp65 } from "drizzle-orm/pg-core";
1728
+ import { boolean as boolean19, index as index41, pgTable as pgTable66, text as text64, timestamp as timestamp65 } from "drizzle-orm/pg-core";
1722
1729
  var dashboardNotifications = pgTable66(
1723
1730
  "dashboard_notifications",
1724
1731
  {
1725
1732
  id: text64("id").primaryKey(),
1726
1733
  title: text64("title").notNull(),
1727
1734
  content: text64("content").notNull(),
1728
- isPrivate: boolean17("is_private").notNull().default(false),
1735
+ isPrivate: boolean19("is_private").notNull().default(false),
1729
1736
  type: text64("type").notNull(),
1730
1737
  programCode: programCodeEnum("program_code"),
1731
1738
  deletedAt: timestamp65("deleted_at"),
@@ -1737,14 +1744,14 @@ var dashboardNotifications = pgTable66(
1737
1744
 
1738
1745
  // notifications/dashboard-notification-user-read.schema.ts
1739
1746
  import { relations as relations47 } from "drizzle-orm";
1740
- import { boolean as boolean18, index as index42, pgTable as pgTable67, text as text65, timestamp as timestamp66 } from "drizzle-orm/pg-core";
1747
+ import { boolean as boolean20, index as index42, pgTable as pgTable67, text as text65, timestamp as timestamp66 } from "drizzle-orm/pg-core";
1741
1748
  var dashboardNotificationUserReads = pgTable67(
1742
1749
  "dashboard_notification_user_reads",
1743
1750
  {
1744
1751
  id: text65("id").primaryKey(),
1745
1752
  userId: text65("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
1746
1753
  notificationId: text65("notification_id").notNull().references(() => dashboardNotifications.id, { onDelete: "cascade" }),
1747
- isOpened: boolean18("is_opened").notNull().default(false),
1754
+ isOpened: boolean20("is_opened").notNull().default(false),
1748
1755
  createdAt: timestamp66("created_at").notNull().defaultNow(),
1749
1756
  updatedAt: timestamp66("updated_at").notNull().defaultNow()
1750
1757
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compfest-18/oppenheimer-schema",
3
- "version": "0.0.6-staging.df88d67",
3
+ "version": "0.0.8",
4
4
  "description": "Drizzle ORM schema for Oppenheimer database",
5
5
  "author": "COMPFEST",
6
6
  "license": "UNLICENSED",