@compfest-18/oppenheimer-schema 0.0.8 → 0.0.10
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 +51 -0
- package/dist/index.mjs +29 -26
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1371,6 +1371,40 @@ declare const xcelerateRegistrations: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
1371
1371
|
identity: undefined;
|
|
1372
1372
|
generated: undefined;
|
|
1373
1373
|
}, {}, {}>;
|
|
1374
|
+
cvUrl: drizzle_orm_pg_core.PgColumn<{
|
|
1375
|
+
name: "cv_url";
|
|
1376
|
+
tableName: "xcelerate_registrations";
|
|
1377
|
+
dataType: "string";
|
|
1378
|
+
columnType: "PgText";
|
|
1379
|
+
data: string;
|
|
1380
|
+
driverParam: string;
|
|
1381
|
+
notNull: false;
|
|
1382
|
+
hasDefault: false;
|
|
1383
|
+
isPrimaryKey: false;
|
|
1384
|
+
isAutoincrement: false;
|
|
1385
|
+
hasRuntimeDefault: false;
|
|
1386
|
+
enumValues: [string, ...string[]];
|
|
1387
|
+
baseColumn: never;
|
|
1388
|
+
identity: undefined;
|
|
1389
|
+
generated: undefined;
|
|
1390
|
+
}, {}, {}>;
|
|
1391
|
+
cvFileName: drizzle_orm_pg_core.PgColumn<{
|
|
1392
|
+
name: "cv_file_name";
|
|
1393
|
+
tableName: "xcelerate_registrations";
|
|
1394
|
+
dataType: "string";
|
|
1395
|
+
columnType: "PgText";
|
|
1396
|
+
data: string;
|
|
1397
|
+
driverParam: string;
|
|
1398
|
+
notNull: false;
|
|
1399
|
+
hasDefault: false;
|
|
1400
|
+
isPrimaryKey: false;
|
|
1401
|
+
isAutoincrement: false;
|
|
1402
|
+
hasRuntimeDefault: false;
|
|
1403
|
+
enumValues: [string, ...string[]];
|
|
1404
|
+
baseColumn: never;
|
|
1405
|
+
identity: undefined;
|
|
1406
|
+
generated: undefined;
|
|
1407
|
+
}, {}, {}>;
|
|
1374
1408
|
deletedAt: drizzle_orm_pg_core.PgColumn<{
|
|
1375
1409
|
name: "deleted_at";
|
|
1376
1410
|
tableName: "xcelerate_registrations";
|
|
@@ -2871,6 +2905,23 @@ declare const teams: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
2871
2905
|
identity: undefined;
|
|
2872
2906
|
generated: undefined;
|
|
2873
2907
|
}, {}, {}>;
|
|
2908
|
+
batch: drizzle_orm_pg_core.PgColumn<{
|
|
2909
|
+
name: "batch";
|
|
2910
|
+
tableName: "teams";
|
|
2911
|
+
dataType: "number";
|
|
2912
|
+
columnType: "PgInteger";
|
|
2913
|
+
data: number;
|
|
2914
|
+
driverParam: string | number;
|
|
2915
|
+
notNull: true;
|
|
2916
|
+
hasDefault: true;
|
|
2917
|
+
isPrimaryKey: false;
|
|
2918
|
+
isAutoincrement: false;
|
|
2919
|
+
hasRuntimeDefault: false;
|
|
2920
|
+
enumValues: undefined;
|
|
2921
|
+
baseColumn: never;
|
|
2922
|
+
identity: undefined;
|
|
2923
|
+
generated: undefined;
|
|
2924
|
+
}, {}, {}>;
|
|
2874
2925
|
deletedAt: drizzle_orm_pg_core.PgColumn<{
|
|
2875
2926
|
name: "deleted_at";
|
|
2876
2927
|
tableName: "teams";
|
package/dist/index.mjs
CHANGED
|
@@ -239,6 +239,8 @@ var xcelerateRegistrations = pgTable6(
|
|
|
239
239
|
jobCategory: text6("job_category"),
|
|
240
240
|
knowEventSource: knowEventSourceEnum("know_event_source"),
|
|
241
241
|
batch: text6("batch"),
|
|
242
|
+
cvUrl: text6("cv_url"),
|
|
243
|
+
cvFileName: text6("cv_file_name"),
|
|
242
244
|
deletedAt: timestamp6("deleted_at"),
|
|
243
245
|
createdAt: timestamp6("created_at").notNull().defaultNow(),
|
|
244
246
|
updatedAt: timestamp6("updated_at").notNull().defaultNow()
|
|
@@ -409,7 +411,7 @@ import { boolean as boolean5, index as index15, pgTable as pgTable17, text as te
|
|
|
409
411
|
|
|
410
412
|
// programs/team.schema.ts
|
|
411
413
|
import { relations as relations15 } from "drizzle-orm";
|
|
412
|
-
import { boolean as boolean4, index as index14, pgTable as pgTable16, text as text16, timestamp as timestamp16 } from "drizzle-orm/pg-core";
|
|
414
|
+
import { boolean as boolean4, index as index14, integer as integer2, pgTable as pgTable16, text as text16, timestamp as timestamp16 } from "drizzle-orm/pg-core";
|
|
413
415
|
|
|
414
416
|
// programs/program.schema.ts
|
|
415
417
|
import { relations as relations14 } from "drizzle-orm";
|
|
@@ -527,6 +529,7 @@ var teams = pgTable16(
|
|
|
527
529
|
status: teamStatusEnum("status").notNull().default("WAITING_FOR_VERIFICATION"),
|
|
528
530
|
notes: text16("notes"),
|
|
529
531
|
isPublic: boolean4("is_public").notNull().default(false),
|
|
532
|
+
batch: integer2("batch").notNull().default(1),
|
|
530
533
|
deletedAt: timestamp16("deleted_at"),
|
|
531
534
|
createdAt: timestamp16("created_at").notNull().defaultNow(),
|
|
532
535
|
updatedAt: timestamp16("updated_at").notNull().defaultNow()
|
|
@@ -758,7 +761,7 @@ var programTaskSubmissionsRelations = relations21(programTaskSubmissions, ({ one
|
|
|
758
761
|
}));
|
|
759
762
|
|
|
760
763
|
// tasks/xcelerate-workshop-task.schema.ts
|
|
761
|
-
import { index as index21, integer as
|
|
764
|
+
import { index as index21, integer as integer3, pgTable as pgTable23, text as text23, timestamp as timestamp23 } from "drizzle-orm/pg-core";
|
|
762
765
|
var xcelerateWorkshopTasks = pgTable23(
|
|
763
766
|
"xcelerateWorkshopTasks",
|
|
764
767
|
{
|
|
@@ -766,7 +769,7 @@ var xcelerateWorkshopTasks = pgTable23(
|
|
|
766
769
|
title: text23("title").notNull(),
|
|
767
770
|
description: text23("description"),
|
|
768
771
|
deadline: timestamp23("deadline"),
|
|
769
|
-
batch:
|
|
772
|
+
batch: integer3("batch"),
|
|
770
773
|
taskUrl: text23("taskUrl"),
|
|
771
774
|
createdAt: timestamp23("createdAt").notNull().defaultNow(),
|
|
772
775
|
updatedAt: timestamp23("updatedAt").notNull().defaultNow()
|
|
@@ -1017,7 +1020,7 @@ var gamesRelations = relations28(games, ({ many }) => ({
|
|
|
1017
1020
|
|
|
1018
1021
|
// tokens/playground-expense-history.schema.ts
|
|
1019
1022
|
import { relations as relations29 } from "drizzle-orm";
|
|
1020
|
-
import { index as index26, integer as
|
|
1023
|
+
import { index as index26, integer as integer4, pgTable as pgTable34, text as text32, timestamp as timestamp34, uuid as uuid6 } from "drizzle-orm/pg-core";
|
|
1021
1024
|
var playgroundExpenseHistories = pgTable34(
|
|
1022
1025
|
"playgroundExpenseHistories",
|
|
1023
1026
|
{
|
|
@@ -1026,7 +1029,7 @@ var playgroundExpenseHistories = pgTable34(
|
|
|
1026
1029
|
onDelete: "cascade"
|
|
1027
1030
|
}),
|
|
1028
1031
|
description: text32("description"),
|
|
1029
|
-
amount:
|
|
1032
|
+
amount: integer4("amount").notNull(),
|
|
1030
1033
|
createdAt: timestamp34("createdAt").notNull().defaultNow(),
|
|
1031
1034
|
updatedAt: timestamp34("updatedAt").notNull().defaultNow()
|
|
1032
1035
|
},
|
|
@@ -1046,7 +1049,7 @@ var playgroundExpenseHistoriesRelations = relations29(
|
|
|
1046
1049
|
|
|
1047
1050
|
// tokens/playground-reward-history.schema.ts
|
|
1048
1051
|
import { relations as relations30 } from "drizzle-orm";
|
|
1049
|
-
import { index as index27, integer as
|
|
1052
|
+
import { index as index27, integer as integer5, pgTable as pgTable35, text as text33, timestamp as timestamp35, uuid as uuid7 } from "drizzle-orm/pg-core";
|
|
1050
1053
|
var playgroundRewardHistories = pgTable35(
|
|
1051
1054
|
"playgroundRewardHistories",
|
|
1052
1055
|
{
|
|
@@ -1056,7 +1059,7 @@ var playgroundRewardHistories = pgTable35(
|
|
|
1056
1059
|
}),
|
|
1057
1060
|
description: text33("description"),
|
|
1058
1061
|
rewardType: rewardTypeEnum("rewardType").notNull(),
|
|
1059
|
-
amount:
|
|
1062
|
+
amount: integer5("amount").notNull(),
|
|
1060
1063
|
createdAt: timestamp35("createdAt").notNull().defaultNow(),
|
|
1061
1064
|
updatedAt: timestamp35("updatedAt").notNull().defaultNow()
|
|
1062
1065
|
},
|
|
@@ -1077,12 +1080,12 @@ import { relations as relations31 } from "drizzle-orm";
|
|
|
1077
1080
|
import { pgTable as pgTable37, text as text35, timestamp as timestamp37, uuid as uuid8 } from "drizzle-orm/pg-core";
|
|
1078
1081
|
|
|
1079
1082
|
// ads/advertisement.schema.ts
|
|
1080
|
-
import { boolean as boolean13, integer as
|
|
1083
|
+
import { boolean as boolean13, integer as integer6, pgTable as pgTable36, text as text34, timestamp as timestamp36 } from "drizzle-orm/pg-core";
|
|
1081
1084
|
var advertisements = pgTable36("advertisements", {
|
|
1082
1085
|
id: text34("id").primaryKey(),
|
|
1083
1086
|
contentUrl: text34("contentUrl").notNull(),
|
|
1084
1087
|
isVideo: boolean13("isVideo").notNull().default(false),
|
|
1085
|
-
contentLength:
|
|
1088
|
+
contentLength: integer6("contentLength"),
|
|
1086
1089
|
createdAt: timestamp36("createdAt").notNull().defaultNow(),
|
|
1087
1090
|
updatedAt: timestamp36("updatedAt").notNull().defaultNow()
|
|
1088
1091
|
});
|
|
@@ -1112,16 +1115,16 @@ var adWatchHistoriesRelations = relations31(adWatchHistories, ({ one }) => ({
|
|
|
1112
1115
|
|
|
1113
1116
|
// ads/ad-watch-session.schema.ts
|
|
1114
1117
|
import { relations as relations32 } from "drizzle-orm";
|
|
1115
|
-
import { integer as
|
|
1118
|
+
import { integer as integer7, pgTable as pgTable38, text as text36, timestamp as timestamp38, uuid as uuid9 } from "drizzle-orm/pg-core";
|
|
1116
1119
|
var adWatchSessions = pgTable38("adWatchSessions", {
|
|
1117
1120
|
id: text36("id").primaryKey(),
|
|
1118
1121
|
userPlaygroundId: uuid9("userPlaygroundId").references(() => userPlaygrounds.id, {
|
|
1119
1122
|
onDelete: "cascade"
|
|
1120
1123
|
}),
|
|
1121
1124
|
adId: text36("adId").references(() => advertisements.id, { onDelete: "cascade" }),
|
|
1122
|
-
adLength:
|
|
1123
|
-
startTimeUnix:
|
|
1124
|
-
lockUntil:
|
|
1125
|
+
adLength: integer7("adLength"),
|
|
1126
|
+
startTimeUnix: integer7("startTimeUnix").notNull(),
|
|
1127
|
+
lockUntil: integer7("lockUntil"),
|
|
1125
1128
|
finishedAt: timestamp38("finishedAt"),
|
|
1126
1129
|
createdAt: timestamp38("createdAt").notNull().defaultNow(),
|
|
1127
1130
|
updatedAt: timestamp38("updatedAt").notNull().defaultNow()
|
|
@@ -1383,19 +1386,19 @@ import { boolean as boolean17, index as index36, pgTable as pgTable49, text as t
|
|
|
1383
1386
|
|
|
1384
1387
|
// jobfair/walk-in-interview-company.schema.ts
|
|
1385
1388
|
import { relations as relations41 } from "drizzle-orm";
|
|
1386
|
-
import { integer as
|
|
1389
|
+
import { integer as integer8, pgTable as pgTable48, text as text46, timestamp as timestamp48 } from "drizzle-orm/pg-core";
|
|
1387
1390
|
var walkInInterviewCompanies = pgTable48("walkInInterviewCompanies", {
|
|
1388
1391
|
id: text46("id").primaryKey(),
|
|
1389
1392
|
name: text46("name").notNull(),
|
|
1390
1393
|
description: text46("description"),
|
|
1391
1394
|
iconUrl: text46("iconUrl"),
|
|
1392
|
-
slots:
|
|
1395
|
+
slots: integer8("slots"),
|
|
1393
1396
|
session: text46("session"),
|
|
1394
1397
|
roles: text46("roles"),
|
|
1395
1398
|
tags: text46("tags"),
|
|
1396
1399
|
benefits: text46("benefits"),
|
|
1397
1400
|
criteria: text46("criteria"),
|
|
1398
|
-
currentApplicants:
|
|
1401
|
+
currentApplicants: integer8("currentApplicants"),
|
|
1399
1402
|
boothLocation: text46("boothLocation"),
|
|
1400
1403
|
createdAt: timestamp48("createdAt").notNull().defaultNow(),
|
|
1401
1404
|
updatedAt: timestamp48("updatedAt").notNull().defaultNow()
|
|
@@ -1510,7 +1513,7 @@ var competitionShowcases = pgTable53(
|
|
|
1510
1513
|
);
|
|
1511
1514
|
|
|
1512
1515
|
// voting/nominee.schema.ts
|
|
1513
|
-
import { boolean as boolean18, integer as
|
|
1516
|
+
import { boolean as boolean18, integer as integer9, pgTable as pgTable54, text as text52, timestamp as timestamp53 } from "drizzle-orm/pg-core";
|
|
1514
1517
|
var nominees = pgTable54("nominees", {
|
|
1515
1518
|
id: text52("id").primaryKey(),
|
|
1516
1519
|
type: nomineeTypeEnum("type").notNull(),
|
|
@@ -1520,7 +1523,7 @@ var nominees = pgTable54("nominees", {
|
|
|
1520
1523
|
thumbnailUrl: text52("thumbnail_url"),
|
|
1521
1524
|
url: text52("url"),
|
|
1522
1525
|
isActive: boolean18("is_active").notNull().default(true),
|
|
1523
|
-
point:
|
|
1526
|
+
point: integer9("point").notNull().default(0),
|
|
1524
1527
|
deletedAt: timestamp53("deleted_at"),
|
|
1525
1528
|
createdAt: timestamp53("created_at").notNull().defaultNow(),
|
|
1526
1529
|
updatedAt: timestamp53("updated_at").notNull().defaultNow()
|
|
@@ -1540,7 +1543,7 @@ var nomineeVotes = pgTable55("nominee_votes", {
|
|
|
1540
1543
|
});
|
|
1541
1544
|
|
|
1542
1545
|
// voting/project.schema.ts
|
|
1543
|
-
import { integer as
|
|
1546
|
+
import { integer as integer10, pgTable as pgTable56, text as text54, timestamp as timestamp55, uniqueIndex as uniqueIndex5 } from "drizzle-orm/pg-core";
|
|
1544
1547
|
var projects = pgTable56(
|
|
1545
1548
|
"projects",
|
|
1546
1549
|
{
|
|
@@ -1553,7 +1556,7 @@ var projects = pgTable56(
|
|
|
1553
1556
|
youtubeUrl: text54("youtube_url"),
|
|
1554
1557
|
externalUrl: text54("external_url"),
|
|
1555
1558
|
teamName: text54("team_name").notNull(),
|
|
1556
|
-
votes:
|
|
1559
|
+
votes: integer10("votes").notNull().default(0),
|
|
1557
1560
|
deletedAt: timestamp55("deleted_at"),
|
|
1558
1561
|
createdAt: timestamp55("created_at").notNull().defaultNow(),
|
|
1559
1562
|
updatedAt: timestamp55("updated_at").notNull().defaultNow()
|
|
@@ -1600,14 +1603,14 @@ var exhibitors = pgTable58(
|
|
|
1600
1603
|
);
|
|
1601
1604
|
|
|
1602
1605
|
// booth/main-event-booth-reward.schema.ts
|
|
1603
|
-
import { index as index40, integer as
|
|
1606
|
+
import { index as index40, integer as integer11, pgTable as pgTable59, text as text57, timestamp as timestamp58 } from "drizzle-orm/pg-core";
|
|
1604
1607
|
var mainEventBoothRewards = pgTable59(
|
|
1605
1608
|
"main_event_booth_rewards",
|
|
1606
1609
|
{
|
|
1607
1610
|
id: text57("id").primaryKey(),
|
|
1608
1611
|
companyName: text57("company_name").notNull(),
|
|
1609
1612
|
description: text57("description").notNull(),
|
|
1610
|
-
points:
|
|
1613
|
+
points: integer11("points").notNull(),
|
|
1611
1614
|
type: boothRewardTypeEnum("type").notNull(),
|
|
1612
1615
|
createdAt: timestamp58("created_at").notNull().defaultNow(),
|
|
1613
1616
|
updatedAt: timestamp58("updated_at").notNull().defaultNow()
|
|
@@ -1619,13 +1622,13 @@ var mainEventBoothRewards = pgTable59(
|
|
|
1619
1622
|
);
|
|
1620
1623
|
|
|
1621
1624
|
// supermarket/supermarket-item.schema.ts
|
|
1622
|
-
import { decimal, integer as
|
|
1625
|
+
import { decimal, integer as integer12, pgTable as pgTable60, text as text58, timestamp as timestamp59 } from "drizzle-orm/pg-core";
|
|
1623
1626
|
var supermarketItems = pgTable60("supermarket_items", {
|
|
1624
1627
|
id: text58("id").primaryKey(),
|
|
1625
1628
|
name: text58("name").notNull(),
|
|
1626
1629
|
description: text58("description"),
|
|
1627
1630
|
price: decimal("price", { precision: 10, scale: 2 }).notNull(),
|
|
1628
|
-
stock:
|
|
1631
|
+
stock: integer12("stock").notNull().default(0),
|
|
1629
1632
|
category: text58("category").notNull(),
|
|
1630
1633
|
imageUrl: text58("image_url"),
|
|
1631
1634
|
deletedAt: timestamp59("deleted_at"),
|
|
@@ -1660,12 +1663,12 @@ import { decimal as decimal2, pgTable as pgTable63, text as text61, timestamp as
|
|
|
1660
1663
|
|
|
1661
1664
|
// supermarket/supermarket-user-cart-item.schema.ts
|
|
1662
1665
|
import { relations as relations45 } from "drizzle-orm";
|
|
1663
|
-
import { integer as
|
|
1666
|
+
import { integer as integer13, json as json3, pgTable as pgTable62, text as text60, timestamp as timestamp61 } from "drizzle-orm/pg-core";
|
|
1664
1667
|
var supermarketUserCartItems = pgTable62("supermarket_user_cart_items", {
|
|
1665
1668
|
id: text60("id").primaryKey(),
|
|
1666
1669
|
cartId: text60("cart_id").notNull().references(() => supermarketUserCarts.id, { onDelete: "cascade" }),
|
|
1667
1670
|
itemId: text60("item_id").notNull().references(() => supermarketItems.id, { onDelete: "cascade" }),
|
|
1668
|
-
quantity:
|
|
1671
|
+
quantity: integer13("quantity").notNull().default(1),
|
|
1669
1672
|
selectedOptions: json3("selected_options"),
|
|
1670
1673
|
// JSON to store selected option key-value pairs
|
|
1671
1674
|
deletedAt: timestamp61("deleted_at"),
|