@optimatech88/titomeet-shared-lib 1.0.43 → 1.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,5 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."ProviderCategory" ADD COLUMN "parentId" TEXT;
3
+
4
+ -- AddForeignKey
5
+ ALTER TABLE "public"."ProviderCategory" ADD CONSTRAINT "ProviderCategory_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "public"."ProviderCategory"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -172,6 +172,11 @@ model ProviderCategory {
172
172
  createdAt DateTime @default(now())
173
173
  updatedAt DateTime @updatedAt
174
174
  providers Provider[]
175
+
176
+ parentId String?
177
+ parent ProviderCategory? @relation("ProviderCategoryParent", fields: [parentId], references: [id])
178
+
179
+ children ProviderCategory[] @relation("ProviderCategoryParent")
175
180
  }
176
181
 
177
182
  model Provider {