@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
|
@@ -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;
|
package/prisma/schema.prisma
CHANGED
|
@@ -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 {
|