@varaos/db 1.3.0 → 1.3.1
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,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- A unique constraint covering the columns `[razorpaySubscriptionId]` on the table `Subscription` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- CreateIndex
|
|
8
|
+
CREATE UNIQUE INDEX "Subscription_razorpaySubscriptionId_key" ON "public"."Subscription"("razorpaySubscriptionId");
|
package/prisma/schema.prisma
CHANGED
|
@@ -119,8 +119,6 @@ enum WorkflowStepRunStatus {
|
|
|
119
119
|
skipped
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
122
|
/// ─────────────────────────────────────────────
|
|
125
123
|
/// USERS & AUTH
|
|
126
124
|
/// ─────────────────────────────────────────────
|
|
@@ -148,9 +146,9 @@ model User {
|
|
|
148
146
|
|
|
149
147
|
metadata Json?
|
|
150
148
|
deletedAt DateTime?
|
|
151
|
-
plan Plan
|
|
152
|
-
tokenBalance Int
|
|
153
|
-
creditsUsed Int
|
|
149
|
+
plan Plan @default(free)
|
|
150
|
+
tokenBalance Int @default(0)
|
|
151
|
+
creditsUsed Int @default(0)
|
|
154
152
|
|
|
155
153
|
chatCount Int @default(0)
|
|
156
154
|
workflowCount Int @default(0)
|
|
@@ -482,7 +480,7 @@ model Workflow {
|
|
|
482
480
|
}
|
|
483
481
|
|
|
484
482
|
model WorkflowStep {
|
|
485
|
-
id String
|
|
483
|
+
id String @id @default(uuid())
|
|
486
484
|
workflowId String
|
|
487
485
|
type String
|
|
488
486
|
config Json
|
|
@@ -514,10 +512,10 @@ model WorkflowRun {
|
|
|
514
512
|
}
|
|
515
513
|
|
|
516
514
|
model WorkflowStepRun {
|
|
517
|
-
id String
|
|
515
|
+
id String @id @default(uuid())
|
|
518
516
|
workflowRunId String
|
|
519
517
|
workflowStepId String
|
|
520
|
-
status WorkflowStepRunStatus
|
|
518
|
+
status WorkflowStepRunStatus @default(pending)
|
|
521
519
|
input Json?
|
|
522
520
|
output Json?
|
|
523
521
|
error String?
|
|
@@ -744,7 +742,7 @@ model Subscription {
|
|
|
744
742
|
nextPayment DateTime?
|
|
745
743
|
|
|
746
744
|
razorpayCustomerId String?
|
|
747
|
-
razorpaySubscriptionId String?
|
|
745
|
+
razorpaySubscriptionId String? @unique
|
|
748
746
|
razorpayPlanId String?
|
|
749
747
|
|
|
750
748
|
metadata Json?
|