@compfest-18/oppenheimer-schema 0.0.6-develop.a779bd0 → 0.0.6-develop.fceb368
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 +221 -1
- package/dist/index.mjs +176 -136
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7759,6 +7759,99 @@ declare const cvClinicVouchers: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
7759
7759
|
dialect: "pg";
|
|
7760
7760
|
}>;
|
|
7761
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
|
+
|
|
7762
7855
|
declare const nominees: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
7763
7856
|
name: "nominees";
|
|
7764
7857
|
schema: undefined;
|
|
@@ -8136,6 +8229,23 @@ declare const projects: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
8136
8229
|
identity: undefined;
|
|
8137
8230
|
generated: undefined;
|
|
8138
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
|
+
}, {}, {}>;
|
|
8139
8249
|
name: drizzle_orm_pg_core.PgColumn<{
|
|
8140
8250
|
name: "name";
|
|
8141
8251
|
tableName: "projects";
|
|
@@ -8221,6 +8331,23 @@ declare const projects: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
8221
8331
|
identity: undefined;
|
|
8222
8332
|
generated: undefined;
|
|
8223
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
|
+
}, {}, {}>;
|
|
8224
8351
|
teamName: drizzle_orm_pg_core.PgColumn<{
|
|
8225
8352
|
name: "team_name";
|
|
8226
8353
|
tableName: "projects";
|
|
@@ -8310,6 +8437,99 @@ declare const projects: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
8310
8437
|
dialect: "pg";
|
|
8311
8438
|
}>;
|
|
8312
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
|
+
|
|
8313
8533
|
declare const exhibitors: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
8314
8534
|
name: "exhibitors";
|
|
8315
8535
|
schema: undefined;
|
|
@@ -9998,4 +10218,4 @@ declare const posts: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
9998
10218
|
dialect: "pg";
|
|
9999
10219
|
}>;
|
|
10000
10220
|
|
|
10001
|
-
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
|
@@ -1412,119 +1412,157 @@ var cvClinicClaims = pgTable50("cv_clinic_claims", {
|
|
|
1412
1412
|
updatedAt: timestamp49("updated_at").notNull().defaultNow()
|
|
1413
1413
|
});
|
|
1414
1414
|
|
|
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
|
+
);
|
|
1428
|
+
|
|
1415
1429
|
// voting/nominee.schema.ts
|
|
1416
|
-
import { boolean as boolean15, integer as integer8, pgTable as
|
|
1417
|
-
var nominees =
|
|
1418
|
-
id:
|
|
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", {
|
|
1432
|
+
id: text50("id").primaryKey(),
|
|
1419
1433
|
type: nomineeTypeEnum("type").notNull(),
|
|
1420
|
-
name:
|
|
1421
|
-
developer:
|
|
1422
|
-
description:
|
|
1423
|
-
thumbnailUrl:
|
|
1424
|
-
url:
|
|
1434
|
+
name: text50("name").notNull(),
|
|
1435
|
+
developer: text50("developer").notNull(),
|
|
1436
|
+
description: text50("description"),
|
|
1437
|
+
thumbnailUrl: text50("thumbnail_url"),
|
|
1438
|
+
url: text50("url"),
|
|
1425
1439
|
isActive: boolean15("is_active").notNull().default(true),
|
|
1426
1440
|
point: integer8("point").notNull().default(0),
|
|
1427
|
-
deletedAt:
|
|
1428
|
-
createdAt: timestamp50("created_at").notNull().defaultNow(),
|
|
1429
|
-
updatedAt: timestamp50("updated_at").notNull().defaultNow()
|
|
1430
|
-
});
|
|
1431
|
-
|
|
1432
|
-
// voting/nominee-vote.schema.ts
|
|
1433
|
-
import { pgTable as pgTable52, text as text50, timestamp as timestamp51 } from "drizzle-orm/pg-core";
|
|
1434
|
-
var nomineeVotes = pgTable52("nominee_votes", {
|
|
1435
|
-
id: text50("id").primaryKey(),
|
|
1436
|
-
userId: text50("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1437
|
-
type: nomineeTypeEnum("type").notNull(),
|
|
1438
|
-
firstChoiceNomineeId: text50("first_choice_nominee_id").notNull().references(() => nominees.id, { onDelete: "cascade" }),
|
|
1439
|
-
secondChoiceNomineeId: text50("second_choice_nominee_id").notNull().references(() => nominees.id, { onDelete: "cascade" }),
|
|
1440
|
-
thirdChoiceNomineeId: text50("third_choice_nominee_id").notNull().references(() => nominees.id, { onDelete: "cascade" }),
|
|
1441
|
+
deletedAt: timestamp51("deleted_at"),
|
|
1441
1442
|
createdAt: timestamp51("created_at").notNull().defaultNow(),
|
|
1442
1443
|
updatedAt: timestamp51("updated_at").notNull().defaultNow()
|
|
1443
1444
|
});
|
|
1444
1445
|
|
|
1445
|
-
// voting/
|
|
1446
|
-
import {
|
|
1447
|
-
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", {
|
|
1448
1449
|
id: text51("id").primaryKey(),
|
|
1449
|
-
|
|
1450
|
+
userId: text51("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1450
1451
|
type: nomineeTypeEnum("type").notNull(),
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
teamName: text51("team_name").notNull(),
|
|
1455
|
-
votes: integer9("votes").notNull().default(0),
|
|
1456
|
-
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" }),
|
|
1457
1455
|
createdAt: timestamp52("created_at").notNull().defaultNow(),
|
|
1458
1456
|
updatedAt: timestamp52("updated_at").notNull().defaultNow()
|
|
1459
1457
|
});
|
|
1460
1458
|
|
|
1461
|
-
//
|
|
1462
|
-
import {
|
|
1463
|
-
var
|
|
1464
|
-
"
|
|
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",
|
|
1465
1463
|
{
|
|
1466
1464
|
id: text52("id").primaryKey(),
|
|
1467
|
-
|
|
1465
|
+
slug: text52("slug").notNull().unique(),
|
|
1468
1466
|
name: text52("name").notNull(),
|
|
1469
|
-
|
|
1470
|
-
|
|
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),
|
|
1471
1474
|
deletedAt: timestamp53("deleted_at"),
|
|
1472
1475
|
createdAt: timestamp53("created_at").notNull().defaultNow(),
|
|
1473
1476
|
updatedAt: timestamp53("updated_at").notNull().defaultNow()
|
|
1474
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
|
+
},
|
|
1475
1513
|
(table) => [
|
|
1476
|
-
|
|
1477
|
-
|
|
1514
|
+
index37("exhibitors_company_name_idx").on(table.companyName),
|
|
1515
|
+
index37("exhibitors_email_idx").on(table.email)
|
|
1478
1516
|
]
|
|
1479
1517
|
);
|
|
1480
1518
|
|
|
1481
1519
|
// booth/main-event-booth-reward.schema.ts
|
|
1482
|
-
import { index as
|
|
1483
|
-
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(
|
|
1484
1522
|
"main_event_booth_rewards",
|
|
1485
1523
|
{
|
|
1486
|
-
id:
|
|
1487
|
-
companyName:
|
|
1488
|
-
description:
|
|
1524
|
+
id: text55("id").primaryKey(),
|
|
1525
|
+
companyName: text55("company_name").notNull(),
|
|
1526
|
+
description: text55("description").notNull(),
|
|
1489
1527
|
points: integer10("points").notNull(),
|
|
1490
1528
|
type: boothRewardTypeEnum("type").notNull(),
|
|
1491
|
-
createdAt:
|
|
1492
|
-
updatedAt:
|
|
1529
|
+
createdAt: timestamp56("created_at").notNull().defaultNow(),
|
|
1530
|
+
updatedAt: timestamp56("updated_at").notNull().defaultNow()
|
|
1493
1531
|
},
|
|
1494
1532
|
(table) => [
|
|
1495
|
-
|
|
1496
|
-
|
|
1533
|
+
index38("main_event_booth_rewards_company_name_idx").on(table.companyName),
|
|
1534
|
+
index38("main_event_booth_rewards_type_idx").on(table.type)
|
|
1497
1535
|
]
|
|
1498
1536
|
);
|
|
1499
1537
|
|
|
1500
1538
|
// supermarket/supermarket-item.schema.ts
|
|
1501
|
-
import { decimal, integer as integer11, pgTable as
|
|
1502
|
-
var supermarketItems =
|
|
1503
|
-
id:
|
|
1504
|
-
name:
|
|
1505
|
-
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"),
|
|
1506
1544
|
price: decimal("price", { precision: 10, scale: 2 }).notNull(),
|
|
1507
1545
|
stock: integer11("stock").notNull().default(0),
|
|
1508
|
-
category:
|
|
1509
|
-
imageUrl:
|
|
1510
|
-
deletedAt:
|
|
1546
|
+
category: text56("category").notNull(),
|
|
1547
|
+
imageUrl: text56("image_url"),
|
|
1548
|
+
deletedAt: timestamp57("deleted_at"),
|
|
1511
1549
|
// Soft delete
|
|
1512
|
-
createdAt:
|
|
1513
|
-
updatedAt:
|
|
1550
|
+
createdAt: timestamp57("created_at").notNull().defaultNow(),
|
|
1551
|
+
updatedAt: timestamp57("updated_at").notNull().defaultNow()
|
|
1514
1552
|
});
|
|
1515
1553
|
|
|
1516
1554
|
// supermarket/supermarket-item-option.schema.ts
|
|
1517
1555
|
import { relations as relations42 } from "drizzle-orm";
|
|
1518
|
-
import { pgTable as
|
|
1519
|
-
var supermarketItemOptions =
|
|
1520
|
-
id:
|
|
1521
|
-
itemId:
|
|
1522
|
-
key:
|
|
1523
|
-
value:
|
|
1524
|
-
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"),
|
|
1525
1563
|
// Soft delete
|
|
1526
|
-
createdAt:
|
|
1527
|
-
updatedAt:
|
|
1564
|
+
createdAt: timestamp58("created_at").notNull().defaultNow(),
|
|
1565
|
+
updatedAt: timestamp58("updated_at").notNull().defaultNow()
|
|
1528
1566
|
});
|
|
1529
1567
|
var supermarketItemOptionsRelations = relations42(supermarketItemOptions, ({ one }) => ({
|
|
1530
1568
|
item: one(supermarketItems, {
|
|
@@ -1535,22 +1573,22 @@ var supermarketItemOptionsRelations = relations42(supermarketItemOptions, ({ one
|
|
|
1535
1573
|
|
|
1536
1574
|
// supermarket/supermarket-user-cart.schema.ts
|
|
1537
1575
|
import { relations as relations44 } from "drizzle-orm";
|
|
1538
|
-
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";
|
|
1539
1577
|
|
|
1540
1578
|
// supermarket/supermarket-user-cart-item.schema.ts
|
|
1541
1579
|
import { relations as relations43 } from "drizzle-orm";
|
|
1542
|
-
import { integer as integer12, json as json3, pgTable as
|
|
1543
|
-
var supermarketUserCartItems =
|
|
1544
|
-
id:
|
|
1545
|
-
cartId:
|
|
1546
|
-
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" }),
|
|
1547
1585
|
quantity: integer12("quantity").notNull().default(1),
|
|
1548
1586
|
selectedOptions: json3("selected_options"),
|
|
1549
1587
|
// JSON to store selected option key-value pairs
|
|
1550
|
-
deletedAt:
|
|
1588
|
+
deletedAt: timestamp59("deleted_at"),
|
|
1551
1589
|
// Soft delete
|
|
1552
|
-
createdAt:
|
|
1553
|
-
updatedAt:
|
|
1590
|
+
createdAt: timestamp59("created_at").notNull().defaultNow(),
|
|
1591
|
+
updatedAt: timestamp59("updated_at").notNull().defaultNow()
|
|
1554
1592
|
});
|
|
1555
1593
|
var supermarketUserCartItemsRelations = relations43(supermarketUserCartItems, ({ one }) => ({
|
|
1556
1594
|
cart: one(supermarketUserCarts, {
|
|
@@ -1564,79 +1602,79 @@ var supermarketUserCartItemsRelations = relations43(supermarketUserCartItems, ({
|
|
|
1564
1602
|
}));
|
|
1565
1603
|
|
|
1566
1604
|
// supermarket/supermarket-user-cart.schema.ts
|
|
1567
|
-
var supermarketUserCarts =
|
|
1568
|
-
id:
|
|
1569
|
-
userId:
|
|
1605
|
+
var supermarketUserCarts = pgTable61("supermarket_user_carts", {
|
|
1606
|
+
id: text59("id").primaryKey(),
|
|
1607
|
+
userId: text59("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
1570
1608
|
totalPrice: decimal2("total_price", { precision: 10, scale: 2 }).notNull(),
|
|
1571
1609
|
status: cartStatusEnum("status").notNull().default("PENDING"),
|
|
1572
|
-
deletedAt:
|
|
1610
|
+
deletedAt: timestamp60("deleted_at"),
|
|
1573
1611
|
// Soft delete
|
|
1574
|
-
createdAt:
|
|
1575
|
-
updatedAt:
|
|
1612
|
+
createdAt: timestamp60("created_at").notNull().defaultNow(),
|
|
1613
|
+
updatedAt: timestamp60("updated_at").notNull().defaultNow()
|
|
1576
1614
|
});
|
|
1577
1615
|
var supermarketUserCartsRelations = relations44(supermarketUserCarts, ({ many }) => ({
|
|
1578
1616
|
cartItems: many(supermarketUserCartItems)
|
|
1579
1617
|
}));
|
|
1580
1618
|
|
|
1581
1619
|
// content/article.schema.ts
|
|
1582
|
-
import { pgTable as
|
|
1583
|
-
var articles =
|
|
1584
|
-
id:
|
|
1585
|
-
title:
|
|
1586
|
-
description:
|
|
1587
|
-
url:
|
|
1588
|
-
imageUrl:
|
|
1589
|
-
deletedAt:
|
|
1590
|
-
createdAt:
|
|
1591
|
-
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()
|
|
1592
1630
|
});
|
|
1593
1631
|
|
|
1594
1632
|
// content/explore-it-funfact.schema.ts
|
|
1595
|
-
import { pgTable as
|
|
1596
|
-
var exploreITFunfacts =
|
|
1597
|
-
id:
|
|
1598
|
-
title:
|
|
1599
|
-
content:
|
|
1600
|
-
imageUrl:
|
|
1601
|
-
deletedAt:
|
|
1602
|
-
createdAt:
|
|
1603
|
-
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()
|
|
1604
1642
|
});
|
|
1605
1643
|
|
|
1606
1644
|
// notifications/dashboard-notification.schema.ts
|
|
1607
|
-
import { boolean as boolean16, index as
|
|
1608
|
-
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(
|
|
1609
1647
|
"dashboard_notifications",
|
|
1610
1648
|
{
|
|
1611
|
-
id:
|
|
1612
|
-
title:
|
|
1613
|
-
content:
|
|
1649
|
+
id: text62("id").primaryKey(),
|
|
1650
|
+
title: text62("title").notNull(),
|
|
1651
|
+
content: text62("content").notNull(),
|
|
1614
1652
|
isPrivate: boolean16("is_private").notNull().default(false),
|
|
1615
|
-
type:
|
|
1653
|
+
type: text62("type").notNull(),
|
|
1616
1654
|
programCode: programCodeEnum("program_code"),
|
|
1617
|
-
deletedAt:
|
|
1618
|
-
createdAt:
|
|
1619
|
-
updatedAt:
|
|
1655
|
+
deletedAt: timestamp63("deleted_at"),
|
|
1656
|
+
createdAt: timestamp63("created_at").notNull().defaultNow(),
|
|
1657
|
+
updatedAt: timestamp63("updated_at").notNull().defaultNow()
|
|
1620
1658
|
},
|
|
1621
|
-
(table) => [
|
|
1659
|
+
(table) => [index39("dashboard_notifications_program_code_idx").on(table.programCode)]
|
|
1622
1660
|
);
|
|
1623
1661
|
|
|
1624
1662
|
// notifications/dashboard-notification-user-read.schema.ts
|
|
1625
1663
|
import { relations as relations45 } from "drizzle-orm";
|
|
1626
|
-
import { boolean as boolean17, index as
|
|
1627
|
-
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(
|
|
1628
1666
|
"dashboard_notification_user_reads",
|
|
1629
1667
|
{
|
|
1630
|
-
id:
|
|
1631
|
-
userId:
|
|
1632
|
-
notificationId:
|
|
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" }),
|
|
1633
1671
|
isOpened: boolean17("is_opened").notNull().default(false),
|
|
1634
|
-
createdAt:
|
|
1635
|
-
updatedAt:
|
|
1672
|
+
createdAt: timestamp64("created_at").notNull().defaultNow(),
|
|
1673
|
+
updatedAt: timestamp64("updated_at").notNull().defaultNow()
|
|
1636
1674
|
},
|
|
1637
1675
|
(table) => [
|
|
1638
|
-
|
|
1639
|
-
|
|
1676
|
+
index40("dashboard_notification_user_reads_user_id_idx").on(table.userId),
|
|
1677
|
+
index40("dashboard_notification_user_reads_notification_id_idx").on(table.notificationId)
|
|
1640
1678
|
]
|
|
1641
1679
|
);
|
|
1642
1680
|
var dashboardNotificationUserReadsRelations = relations45(
|
|
@@ -1654,32 +1692,32 @@ var dashboardNotificationUserReadsRelations = relations45(
|
|
|
1654
1692
|
);
|
|
1655
1693
|
|
|
1656
1694
|
// post-example/comment.schema.ts
|
|
1657
|
-
import { pgTable as
|
|
1658
|
-
var comments =
|
|
1695
|
+
import { pgTable as pgTable66, text as text64, uuid as uuid10 } from "drizzle-orm/pg-core";
|
|
1696
|
+
var comments = pgTable66("comments", {
|
|
1659
1697
|
id: uuid10("id").primaryKey(),
|
|
1660
1698
|
postId: uuid10("post_id").notNull(),
|
|
1661
|
-
content:
|
|
1662
|
-
author:
|
|
1699
|
+
content: text64("content").notNull(),
|
|
1700
|
+
author: text64("author").notNull()
|
|
1663
1701
|
});
|
|
1664
1702
|
|
|
1665
1703
|
// post-example/like.schema.ts
|
|
1666
|
-
import { pgTable as
|
|
1667
|
-
var likes =
|
|
1704
|
+
import { pgTable as pgTable67, text as text65, uuid as uuid11 } from "drizzle-orm/pg-core";
|
|
1705
|
+
var likes = pgTable67("likes", {
|
|
1668
1706
|
id: uuid11("id").primaryKey(),
|
|
1669
1707
|
postId: uuid11("post_id").notNull(),
|
|
1670
|
-
userName:
|
|
1708
|
+
userName: text65("user_name").notNull()
|
|
1671
1709
|
});
|
|
1672
1710
|
|
|
1673
1711
|
// post-example/post.schema.ts
|
|
1674
|
-
import { pgTable as
|
|
1675
|
-
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", {
|
|
1676
1714
|
id: uuid12("id").primaryKey(),
|
|
1677
1715
|
// Primary Key UUID
|
|
1678
|
-
title:
|
|
1679
|
-
content:
|
|
1680
|
-
author:
|
|
1681
|
-
createdAt:
|
|
1682
|
-
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()
|
|
1683
1721
|
});
|
|
1684
1722
|
export {
|
|
1685
1723
|
adWatchHistories,
|
|
@@ -1696,6 +1734,7 @@ export {
|
|
|
1696
1734
|
companyExhibitionVacancies,
|
|
1697
1735
|
companyExhibitionVacanciesRelations,
|
|
1698
1736
|
companyExhibitions,
|
|
1737
|
+
competitionShowcases,
|
|
1699
1738
|
cvClinicClaims,
|
|
1700
1739
|
cvClinicVouchers,
|
|
1701
1740
|
dashboardNotificationUserReads,
|
|
@@ -1776,6 +1815,7 @@ export {
|
|
|
1776
1815
|
programTypeEnum,
|
|
1777
1816
|
programs,
|
|
1778
1817
|
programsRelations,
|
|
1818
|
+
projectVotes,
|
|
1779
1819
|
projects,
|
|
1780
1820
|
questionTypeEnum,
|
|
1781
1821
|
rewardTypeEnum,
|