@voyantjs/transactions 0.6.0 → 0.6.3

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.
@@ -61,7 +61,7 @@ export const offerParticipants = pgTable("offer_participants", {
61
61
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
62
62
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
63
63
  }, (table) => [
64
- index("idx_offer_participants_offer").on(table.offerId),
64
+ index("idx_offer_participants_offer_created").on(table.offerId, table.createdAt),
65
65
  index("idx_offer_participants_person").on(table.personId),
66
66
  index("idx_offer_participants_type").on(table.participantType),
67
67
  ]);
@@ -95,7 +95,7 @@ export const offerItems = pgTable("offer_items", {
95
95
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
96
96
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
97
97
  }, (table) => [
98
- index("idx_offer_items_offer").on(table.offerId),
98
+ index("idx_offer_items_offer_created").on(table.offerId, table.createdAt),
99
99
  index("idx_offer_items_product").on(table.productId),
100
100
  index("idx_offer_items_option").on(table.optionId),
101
101
  index("idx_offer_items_unit").on(table.unitId),
@@ -114,7 +114,7 @@ export const offerItemParticipants = pgTable("offer_item_participants", {
114
114
  isPrimary: boolean("is_primary").notNull().default(false),
115
115
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
116
116
  }, (table) => [
117
- index("idx_offer_item_participants_item").on(table.offerItemId),
117
+ index("idx_offer_item_participants_item_created").on(table.offerItemId, table.createdAt),
118
118
  index("idx_offer_item_participants_participant").on(table.participantId),
119
119
  uniqueIndex("uidx_offer_item_participants").on(table.offerItemId, table.participantId),
120
120
  ]);
@@ -62,7 +62,7 @@ export const orderParticipants = pgTable("order_participants", {
62
62
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
63
63
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
64
64
  }, (table) => [
65
- index("idx_order_participants_order").on(table.orderId),
65
+ index("idx_order_participants_order_created").on(table.orderId, table.createdAt),
66
66
  index("idx_order_participants_person").on(table.personId),
67
67
  index("idx_order_participants_type").on(table.participantType),
68
68
  ]);
@@ -99,7 +99,7 @@ export const orderItems = pgTable("order_items", {
99
99
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
100
100
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
101
101
  }, (table) => [
102
- index("idx_order_items_order").on(table.orderId),
102
+ index("idx_order_items_order_created").on(table.orderId, table.createdAt),
103
103
  index("idx_order_items_offer_item").on(table.offerItemId),
104
104
  index("idx_order_items_product").on(table.productId),
105
105
  index("idx_order_items_option").on(table.optionId),
@@ -119,7 +119,7 @@ export const orderItemParticipants = pgTable("order_item_participants", {
119
119
  isPrimary: boolean("is_primary").notNull().default(false),
120
120
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
121
121
  }, (table) => [
122
- index("idx_order_item_participants_item").on(table.orderItemId),
122
+ index("idx_order_item_participants_item_created").on(table.orderItemId, table.createdAt),
123
123
  index("idx_order_item_participants_participant").on(table.participantId),
124
124
  uniqueIndex("uidx_order_item_participants").on(table.orderItemId, table.participantId),
125
125
  ]);
@@ -143,7 +143,7 @@ export const orderTerms = pgTable("order_terms", {
143
143
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
144
144
  }, (table) => [
145
145
  index("idx_order_terms_offer").on(table.offerId),
146
- index("idx_order_terms_order").on(table.orderId),
146
+ index("idx_order_terms_order_sort").on(table.orderId, table.sortOrder, table.createdAt),
147
147
  index("idx_order_terms_type").on(table.termType),
148
148
  index("idx_order_terms_acceptance").on(table.acceptanceStatus),
149
149
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/transactions",
3
- "version": "0.6.0",
3
+ "version": "0.6.3",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,10 +29,10 @@
29
29
  "drizzle-orm": "^0.45.2",
30
30
  "hono": "^4.12.10",
31
31
  "zod": "^4.3.6",
32
- "@voyantjs/core": "0.6.0",
33
- "@voyantjs/db": "0.6.0",
34
- "@voyantjs/hono": "0.6.0",
35
- "@voyantjs/utils": "0.6.0"
32
+ "@voyantjs/core": "0.6.3",
33
+ "@voyantjs/db": "0.6.3",
34
+ "@voyantjs/hono": "0.6.3",
35
+ "@voyantjs/utils": "0.6.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "^6.0.2",