@optimatech88/titomeet-shared-lib 1.0.42 → 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,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `subtitle` to the `Pricing` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
- Added the required column `title` to the `Pricing` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE "public"."Pricing" ADD COLUMN "features" TEXT[],
|
|
10
|
+
ADD COLUMN "priceSuffix" TEXT,
|
|
11
|
+
ADD COLUMN "subtitle" TEXT NOT NULL,
|
|
12
|
+
ADD COLUMN "title" TEXT NOT NULL;
|
|
@@ -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 {
|
|
@@ -368,7 +373,13 @@ enum PricingDuration {
|
|
|
368
373
|
}
|
|
369
374
|
|
|
370
375
|
model Pricing {
|
|
371
|
-
id
|
|
376
|
+
id String @id @default(cuid())
|
|
377
|
+
title String
|
|
378
|
+
subtitle String
|
|
379
|
+
|
|
380
|
+
priceSuffix String?
|
|
381
|
+
|
|
382
|
+
features String[]
|
|
372
383
|
|
|
373
384
|
type PricingType @default(EVENT_CREATOR)
|
|
374
385
|
duration PricingDuration @default(MONTHLY)
|
|
@@ -377,6 +388,7 @@ model Pricing {
|
|
|
377
388
|
createdAt DateTime @default(now())
|
|
378
389
|
updatedAt DateTime @updatedAt
|
|
379
390
|
transactions Transaction[]
|
|
391
|
+
active Boolean @default(true)
|
|
380
392
|
}
|
|
381
393
|
|
|
382
394
|
enum PaymentMethod {
|