@compfest-18/oppenheimer-schema 0.0.8 → 0.0.9

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
@@ -2871,6 +2871,23 @@ declare const teams: drizzle_orm_pg_core.PgTableWithColumns<{
2871
2871
  identity: undefined;
2872
2872
  generated: undefined;
2873
2873
  }, {}, {}>;
2874
+ batch: drizzle_orm_pg_core.PgColumn<{
2875
+ name: "batch";
2876
+ tableName: "teams";
2877
+ dataType: "number";
2878
+ columnType: "PgInteger";
2879
+ data: number;
2880
+ driverParam: string | number;
2881
+ notNull: true;
2882
+ hasDefault: true;
2883
+ isPrimaryKey: false;
2884
+ isAutoincrement: false;
2885
+ hasRuntimeDefault: false;
2886
+ enumValues: undefined;
2887
+ baseColumn: never;
2888
+ identity: undefined;
2889
+ generated: undefined;
2890
+ }, {}, {}>;
2874
2891
  deletedAt: drizzle_orm_pg_core.PgColumn<{
2875
2892
  name: "deleted_at";
2876
2893
  tableName: "teams";
package/dist/index.mjs CHANGED
@@ -409,7 +409,7 @@ import { boolean as boolean5, index as index15, pgTable as pgTable17, text as te
409
409
 
410
410
  // programs/team.schema.ts
411
411
  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";
412
+ 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
413
 
414
414
  // programs/program.schema.ts
415
415
  import { relations as relations14 } from "drizzle-orm";
@@ -527,6 +527,7 @@ var teams = pgTable16(
527
527
  status: teamStatusEnum("status").notNull().default("WAITING_FOR_VERIFICATION"),
528
528
  notes: text16("notes"),
529
529
  isPublic: boolean4("is_public").notNull().default(false),
530
+ batch: integer2("batch").notNull().default(1),
530
531
  deletedAt: timestamp16("deleted_at"),
531
532
  createdAt: timestamp16("created_at").notNull().defaultNow(),
532
533
  updatedAt: timestamp16("updated_at").notNull().defaultNow()
@@ -758,7 +759,7 @@ var programTaskSubmissionsRelations = relations21(programTaskSubmissions, ({ one
758
759
  }));
759
760
 
760
761
  // tasks/xcelerate-workshop-task.schema.ts
761
- import { index as index21, integer as integer2, pgTable as pgTable23, text as text23, timestamp as timestamp23 } from "drizzle-orm/pg-core";
762
+ import { index as index21, integer as integer3, pgTable as pgTable23, text as text23, timestamp as timestamp23 } from "drizzle-orm/pg-core";
762
763
  var xcelerateWorkshopTasks = pgTable23(
763
764
  "xcelerateWorkshopTasks",
764
765
  {
@@ -766,7 +767,7 @@ var xcelerateWorkshopTasks = pgTable23(
766
767
  title: text23("title").notNull(),
767
768
  description: text23("description"),
768
769
  deadline: timestamp23("deadline"),
769
- batch: integer2("batch"),
770
+ batch: integer3("batch"),
770
771
  taskUrl: text23("taskUrl"),
771
772
  createdAt: timestamp23("createdAt").notNull().defaultNow(),
772
773
  updatedAt: timestamp23("updatedAt").notNull().defaultNow()
@@ -1017,7 +1018,7 @@ var gamesRelations = relations28(games, ({ many }) => ({
1017
1018
 
1018
1019
  // tokens/playground-expense-history.schema.ts
1019
1020
  import { relations as relations29 } from "drizzle-orm";
1020
- import { index as index26, integer as integer3, pgTable as pgTable34, text as text32, timestamp as timestamp34, uuid as uuid6 } from "drizzle-orm/pg-core";
1021
+ 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
1022
  var playgroundExpenseHistories = pgTable34(
1022
1023
  "playgroundExpenseHistories",
1023
1024
  {
@@ -1026,7 +1027,7 @@ var playgroundExpenseHistories = pgTable34(
1026
1027
  onDelete: "cascade"
1027
1028
  }),
1028
1029
  description: text32("description"),
1029
- amount: integer3("amount").notNull(),
1030
+ amount: integer4("amount").notNull(),
1030
1031
  createdAt: timestamp34("createdAt").notNull().defaultNow(),
1031
1032
  updatedAt: timestamp34("updatedAt").notNull().defaultNow()
1032
1033
  },
@@ -1046,7 +1047,7 @@ var playgroundExpenseHistoriesRelations = relations29(
1046
1047
 
1047
1048
  // tokens/playground-reward-history.schema.ts
1048
1049
  import { relations as relations30 } from "drizzle-orm";
1049
- import { index as index27, integer as integer4, pgTable as pgTable35, text as text33, timestamp as timestamp35, uuid as uuid7 } from "drizzle-orm/pg-core";
1050
+ 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
1051
  var playgroundRewardHistories = pgTable35(
1051
1052
  "playgroundRewardHistories",
1052
1053
  {
@@ -1056,7 +1057,7 @@ var playgroundRewardHistories = pgTable35(
1056
1057
  }),
1057
1058
  description: text33("description"),
1058
1059
  rewardType: rewardTypeEnum("rewardType").notNull(),
1059
- amount: integer4("amount").notNull(),
1060
+ amount: integer5("amount").notNull(),
1060
1061
  createdAt: timestamp35("createdAt").notNull().defaultNow(),
1061
1062
  updatedAt: timestamp35("updatedAt").notNull().defaultNow()
1062
1063
  },
@@ -1077,12 +1078,12 @@ import { relations as relations31 } from "drizzle-orm";
1077
1078
  import { pgTable as pgTable37, text as text35, timestamp as timestamp37, uuid as uuid8 } from "drizzle-orm/pg-core";
1078
1079
 
1079
1080
  // ads/advertisement.schema.ts
1080
- import { boolean as boolean13, integer as integer5, pgTable as pgTable36, text as text34, timestamp as timestamp36 } from "drizzle-orm/pg-core";
1081
+ import { boolean as boolean13, integer as integer6, pgTable as pgTable36, text as text34, timestamp as timestamp36 } from "drizzle-orm/pg-core";
1081
1082
  var advertisements = pgTable36("advertisements", {
1082
1083
  id: text34("id").primaryKey(),
1083
1084
  contentUrl: text34("contentUrl").notNull(),
1084
1085
  isVideo: boolean13("isVideo").notNull().default(false),
1085
- contentLength: integer5("contentLength"),
1086
+ contentLength: integer6("contentLength"),
1086
1087
  createdAt: timestamp36("createdAt").notNull().defaultNow(),
1087
1088
  updatedAt: timestamp36("updatedAt").notNull().defaultNow()
1088
1089
  });
@@ -1112,16 +1113,16 @@ var adWatchHistoriesRelations = relations31(adWatchHistories, ({ one }) => ({
1112
1113
 
1113
1114
  // ads/ad-watch-session.schema.ts
1114
1115
  import { relations as relations32 } from "drizzle-orm";
1115
- import { integer as integer6, pgTable as pgTable38, text as text36, timestamp as timestamp38, uuid as uuid9 } from "drizzle-orm/pg-core";
1116
+ import { integer as integer7, pgTable as pgTable38, text as text36, timestamp as timestamp38, uuid as uuid9 } from "drizzle-orm/pg-core";
1116
1117
  var adWatchSessions = pgTable38("adWatchSessions", {
1117
1118
  id: text36("id").primaryKey(),
1118
1119
  userPlaygroundId: uuid9("userPlaygroundId").references(() => userPlaygrounds.id, {
1119
1120
  onDelete: "cascade"
1120
1121
  }),
1121
1122
  adId: text36("adId").references(() => advertisements.id, { onDelete: "cascade" }),
1122
- adLength: integer6("adLength"),
1123
- startTimeUnix: integer6("startTimeUnix").notNull(),
1124
- lockUntil: integer6("lockUntil"),
1123
+ adLength: integer7("adLength"),
1124
+ startTimeUnix: integer7("startTimeUnix").notNull(),
1125
+ lockUntil: integer7("lockUntil"),
1125
1126
  finishedAt: timestamp38("finishedAt"),
1126
1127
  createdAt: timestamp38("createdAt").notNull().defaultNow(),
1127
1128
  updatedAt: timestamp38("updatedAt").notNull().defaultNow()
@@ -1383,19 +1384,19 @@ import { boolean as boolean17, index as index36, pgTable as pgTable49, text as t
1383
1384
 
1384
1385
  // jobfair/walk-in-interview-company.schema.ts
1385
1386
  import { relations as relations41 } from "drizzle-orm";
1386
- import { integer as integer7, pgTable as pgTable48, text as text46, timestamp as timestamp48 } from "drizzle-orm/pg-core";
1387
+ import { integer as integer8, pgTable as pgTable48, text as text46, timestamp as timestamp48 } from "drizzle-orm/pg-core";
1387
1388
  var walkInInterviewCompanies = pgTable48("walkInInterviewCompanies", {
1388
1389
  id: text46("id").primaryKey(),
1389
1390
  name: text46("name").notNull(),
1390
1391
  description: text46("description"),
1391
1392
  iconUrl: text46("iconUrl"),
1392
- slots: integer7("slots"),
1393
+ slots: integer8("slots"),
1393
1394
  session: text46("session"),
1394
1395
  roles: text46("roles"),
1395
1396
  tags: text46("tags"),
1396
1397
  benefits: text46("benefits"),
1397
1398
  criteria: text46("criteria"),
1398
- currentApplicants: integer7("currentApplicants"),
1399
+ currentApplicants: integer8("currentApplicants"),
1399
1400
  boothLocation: text46("boothLocation"),
1400
1401
  createdAt: timestamp48("createdAt").notNull().defaultNow(),
1401
1402
  updatedAt: timestamp48("updatedAt").notNull().defaultNow()
@@ -1510,7 +1511,7 @@ var competitionShowcases = pgTable53(
1510
1511
  );
1511
1512
 
1512
1513
  // voting/nominee.schema.ts
1513
- import { boolean as boolean18, integer as integer8, pgTable as pgTable54, text as text52, timestamp as timestamp53 } from "drizzle-orm/pg-core";
1514
+ import { boolean as boolean18, integer as integer9, pgTable as pgTable54, text as text52, timestamp as timestamp53 } from "drizzle-orm/pg-core";
1514
1515
  var nominees = pgTable54("nominees", {
1515
1516
  id: text52("id").primaryKey(),
1516
1517
  type: nomineeTypeEnum("type").notNull(),
@@ -1520,7 +1521,7 @@ var nominees = pgTable54("nominees", {
1520
1521
  thumbnailUrl: text52("thumbnail_url"),
1521
1522
  url: text52("url"),
1522
1523
  isActive: boolean18("is_active").notNull().default(true),
1523
- point: integer8("point").notNull().default(0),
1524
+ point: integer9("point").notNull().default(0),
1524
1525
  deletedAt: timestamp53("deleted_at"),
1525
1526
  createdAt: timestamp53("created_at").notNull().defaultNow(),
1526
1527
  updatedAt: timestamp53("updated_at").notNull().defaultNow()
@@ -1540,7 +1541,7 @@ var nomineeVotes = pgTable55("nominee_votes", {
1540
1541
  });
1541
1542
 
1542
1543
  // voting/project.schema.ts
1543
- import { integer as integer9, pgTable as pgTable56, text as text54, timestamp as timestamp55, uniqueIndex as uniqueIndex5 } from "drizzle-orm/pg-core";
1544
+ import { integer as integer10, pgTable as pgTable56, text as text54, timestamp as timestamp55, uniqueIndex as uniqueIndex5 } from "drizzle-orm/pg-core";
1544
1545
  var projects = pgTable56(
1545
1546
  "projects",
1546
1547
  {
@@ -1553,7 +1554,7 @@ var projects = pgTable56(
1553
1554
  youtubeUrl: text54("youtube_url"),
1554
1555
  externalUrl: text54("external_url"),
1555
1556
  teamName: text54("team_name").notNull(),
1556
- votes: integer9("votes").notNull().default(0),
1557
+ votes: integer10("votes").notNull().default(0),
1557
1558
  deletedAt: timestamp55("deleted_at"),
1558
1559
  createdAt: timestamp55("created_at").notNull().defaultNow(),
1559
1560
  updatedAt: timestamp55("updated_at").notNull().defaultNow()
@@ -1600,14 +1601,14 @@ var exhibitors = pgTable58(
1600
1601
  );
1601
1602
 
1602
1603
  // booth/main-event-booth-reward.schema.ts
1603
- import { index as index40, integer as integer10, pgTable as pgTable59, text as text57, timestamp as timestamp58 } from "drizzle-orm/pg-core";
1604
+ import { index as index40, integer as integer11, pgTable as pgTable59, text as text57, timestamp as timestamp58 } from "drizzle-orm/pg-core";
1604
1605
  var mainEventBoothRewards = pgTable59(
1605
1606
  "main_event_booth_rewards",
1606
1607
  {
1607
1608
  id: text57("id").primaryKey(),
1608
1609
  companyName: text57("company_name").notNull(),
1609
1610
  description: text57("description").notNull(),
1610
- points: integer10("points").notNull(),
1611
+ points: integer11("points").notNull(),
1611
1612
  type: boothRewardTypeEnum("type").notNull(),
1612
1613
  createdAt: timestamp58("created_at").notNull().defaultNow(),
1613
1614
  updatedAt: timestamp58("updated_at").notNull().defaultNow()
@@ -1619,13 +1620,13 @@ var mainEventBoothRewards = pgTable59(
1619
1620
  );
1620
1621
 
1621
1622
  // supermarket/supermarket-item.schema.ts
1622
- import { decimal, integer as integer11, pgTable as pgTable60, text as text58, timestamp as timestamp59 } from "drizzle-orm/pg-core";
1623
+ import { decimal, integer as integer12, pgTable as pgTable60, text as text58, timestamp as timestamp59 } from "drizzle-orm/pg-core";
1623
1624
  var supermarketItems = pgTable60("supermarket_items", {
1624
1625
  id: text58("id").primaryKey(),
1625
1626
  name: text58("name").notNull(),
1626
1627
  description: text58("description"),
1627
1628
  price: decimal("price", { precision: 10, scale: 2 }).notNull(),
1628
- stock: integer11("stock").notNull().default(0),
1629
+ stock: integer12("stock").notNull().default(0),
1629
1630
  category: text58("category").notNull(),
1630
1631
  imageUrl: text58("image_url"),
1631
1632
  deletedAt: timestamp59("deleted_at"),
@@ -1660,12 +1661,12 @@ import { decimal as decimal2, pgTable as pgTable63, text as text61, timestamp as
1660
1661
 
1661
1662
  // supermarket/supermarket-user-cart-item.schema.ts
1662
1663
  import { relations as relations45 } from "drizzle-orm";
1663
- import { integer as integer12, json as json3, pgTable as pgTable62, text as text60, timestamp as timestamp61 } from "drizzle-orm/pg-core";
1664
+ import { integer as integer13, json as json3, pgTable as pgTable62, text as text60, timestamp as timestamp61 } from "drizzle-orm/pg-core";
1664
1665
  var supermarketUserCartItems = pgTable62("supermarket_user_cart_items", {
1665
1666
  id: text60("id").primaryKey(),
1666
1667
  cartId: text60("cart_id").notNull().references(() => supermarketUserCarts.id, { onDelete: "cascade" }),
1667
1668
  itemId: text60("item_id").notNull().references(() => supermarketItems.id, { onDelete: "cascade" }),
1668
- quantity: integer12("quantity").notNull().default(1),
1669
+ quantity: integer13("quantity").notNull().default(1),
1669
1670
  selectedOptions: json3("selected_options"),
1670
1671
  // JSON to store selected option key-value pairs
1671
1672
  deletedAt: timestamp61("deleted_at"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compfest-18/oppenheimer-schema",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Drizzle ORM schema for Oppenheimer database",
5
5
  "author": "COMPFEST",
6
6
  "license": "UNLICENSED",