@optimatech88/titomeet-shared-lib 1.0.43 → 1.0.45
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
|
@@ -112,6 +112,7 @@ model EventPrice {
|
|
|
112
112
|
amount Float
|
|
113
113
|
description String?
|
|
114
114
|
eventId String
|
|
115
|
+
totalSeats Int @default(1)
|
|
115
116
|
createdAt DateTime @default(now())
|
|
116
117
|
updatedAt DateTime @updatedAt
|
|
117
118
|
event Event @relation(fields: [eventId], references: [id])
|
|
@@ -172,6 +173,11 @@ model ProviderCategory {
|
|
|
172
173
|
createdAt DateTime @default(now())
|
|
173
174
|
updatedAt DateTime @updatedAt
|
|
174
175
|
providers Provider[]
|
|
176
|
+
|
|
177
|
+
parentId String?
|
|
178
|
+
parent ProviderCategory? @relation("ProviderCategoryParent", fields: [parentId], references: [id])
|
|
179
|
+
|
|
180
|
+
children ProviderCategory[] @relation("ProviderCategoryParent")
|
|
175
181
|
}
|
|
176
182
|
|
|
177
183
|
model Provider {
|