@voyantjs/facilities 0.6.7 → 0.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAiB9F,eAAO,MAAM,gBAAgB,iNAgB3B,CAAA;AAEF,eAAO,MAAM,kBAAkB,0EAAgE,CAAA;AAE/F,eAAO,MAAM,qBAAqB,yFAKhC,CAAA;AAEF,eAAO,MAAM,2BAA2B,8GAOtC,CAAA;AAEF,eAAO,MAAM,qBAAqB,sHAQhC,CAAA;AAEF,eAAO,MAAM,gBAAgB,qHAS3B,CAAA;AAEF,eAAO,MAAM,qBAAqB,+HAQhC,CAAA;AAEF,eAAO,MAAM,uBAAuB,0EAIlC,CAAA;AAEF,eAAO,MAAM,+BAA+B,+FAM1C,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BtB,CAAA;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,MAAM,mBAAmB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAA;AAC1E,MAAM,MAAM,sBAAsB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAA;AAE7E,eAAO,MAAM,mBAAmB;;;;;;;EAiB7B,CAAA;AAEH,eAAO,MAAM,mCAAmC;;EAQ/C,CAAA;AAED,eAAO,MAAM,yBAAyB;;EAKnC,CAAA;AAEH,eAAO,MAAM,mCAAmC;;EAQ/C,CAAA;AAED,eAAO,MAAM,mBAAmB;;EAK7B,CAAA;AAEH,eAAO,MAAM,uBAAuB;;;;EAQjC,CAAA;AAEH,eAAO,MAAM,6BAA6B;;;EASvC,CAAA"}
package/dist/schema.js CHANGED
@@ -90,8 +90,9 @@ export const facilities = pgTable("facilities", {
90
90
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
91
91
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
92
92
  }, (table) => [
93
- index("idx_facilities_parent").on(table.parentFacilityId),
93
+ index("idx_facilities_parent_updated").on(table.parentFacilityId, table.updatedAt),
94
94
  index("idx_facilities_owner_updated").on(table.ownerType, table.ownerId, table.updatedAt),
95
+ index("idx_facilities_owner_id_updated").on(table.ownerId, table.updatedAt),
95
96
  index("idx_facilities_kind_updated").on(table.kind, table.updatedAt),
96
97
  index("idx_facilities_status_updated").on(table.status, table.updatedAt),
97
98
  uniqueIndex("uidx_facilities_code").on(table.code),
@@ -133,7 +134,8 @@ export const facilityFeatures = pgTable("facility_features", {
133
134
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
134
135
  }, (table) => [
135
136
  index("idx_facility_features_facility_sort_name").on(table.facilityId, table.sortOrder, table.name),
136
- index("idx_facility_features_category").on(table.category),
137
+ index("idx_facility_features_category_sort_name").on(table.category, table.sortOrder, table.name),
138
+ index("idx_facility_features_facility_category_sort_name").on(table.facilityId, table.category, table.sortOrder, table.name),
137
139
  ]);
138
140
  export const facilityOperationSchedules = pgTable("facility_operation_schedules", {
139
141
  id: typeId("facility_operation_schedules"),
@@ -151,7 +153,7 @@ export const facilityOperationSchedules = pgTable("facility_operation_schedules"
151
153
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
152
154
  }, (table) => [
153
155
  index("idx_facility_operation_schedules_facility_day_valid").on(table.facilityId, table.dayOfWeek, table.validFrom),
154
- index("idx_facility_operation_schedules_day").on(table.dayOfWeek),
156
+ index("idx_facility_operation_schedules_day_valid").on(table.dayOfWeek, table.validFrom),
155
157
  ]);
156
158
  export const properties = pgTable("properties", {
157
159
  id: typeId("properties"),
@@ -171,8 +173,9 @@ export const properties = pgTable("properties", {
171
173
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
172
174
  }, (table) => [
173
175
  uniqueIndex("uidx_properties_facility").on(table.facilityId),
174
- index("idx_properties_type").on(table.propertyType),
175
- index("idx_properties_group").on(table.groupName),
176
+ index("idx_properties_updated").on(table.updatedAt),
177
+ index("idx_properties_type_updated").on(table.propertyType, table.updatedAt),
178
+ index("idx_properties_group_updated").on(table.groupName, table.updatedAt),
176
179
  ]);
177
180
  export const propertyGroups = pgTable("property_groups", {
178
181
  id: typeId("property_groups"),
@@ -192,8 +195,9 @@ export const propertyGroups = pgTable("property_groups", {
192
195
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
193
196
  }, (table) => [
194
197
  index("idx_property_groups_parent_updated").on(table.parentGroupId, table.updatedAt),
195
- index("idx_property_groups_type").on(table.groupType),
196
- index("idx_property_groups_status").on(table.status),
198
+ index("idx_property_groups_updated").on(table.updatedAt),
199
+ index("idx_property_groups_type_updated").on(table.groupType, table.updatedAt),
200
+ index("idx_property_groups_status_updated").on(table.status, table.updatedAt),
197
201
  uniqueIndex("uidx_property_groups_code").on(table.code),
198
202
  ]);
199
203
  export const propertyGroupMembers = pgTable("property_group_members", {
@@ -213,8 +217,9 @@ export const propertyGroupMembers = pgTable("property_group_members", {
213
217
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
214
218
  }, (table) => [
215
219
  index("idx_property_group_members_group_updated").on(table.groupId, table.updatedAt),
216
- index("idx_property_group_members_property").on(table.propertyId),
217
- index("idx_property_group_members_role").on(table.membershipRole),
220
+ index("idx_property_group_members_updated").on(table.updatedAt),
221
+ index("idx_property_group_members_property_updated").on(table.propertyId, table.updatedAt),
222
+ index("idx_property_group_members_role_updated").on(table.membershipRole, table.updatedAt),
218
223
  uniqueIndex("uidx_property_group_members_pair").on(table.groupId, table.propertyId),
219
224
  ]);
220
225
  export const facilitiesRelations = relations(facilities, ({ one, many }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/facilities",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,10 +25,10 @@
25
25
  "drizzle-orm": "^0.45.2",
26
26
  "hono": "^4.12.10",
27
27
  "zod": "^4.3.6",
28
- "@voyantjs/core": "0.6.7",
29
- "@voyantjs/db": "0.6.7",
30
- "@voyantjs/hono": "0.6.7",
31
- "@voyantjs/identity": "0.6.7"
28
+ "@voyantjs/core": "0.6.9",
29
+ "@voyantjs/db": "0.6.9",
30
+ "@voyantjs/hono": "0.6.9",
31
+ "@voyantjs/identity": "0.6.9"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "^6.0.2",