@varaos/db 1.2.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
|
@@ -91,6 +91,7 @@ enum SubscriptionStatus {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
enum WorkflowStatus {
|
|
94
|
+
draft
|
|
94
95
|
active
|
|
95
96
|
paused
|
|
96
97
|
archived
|
|
@@ -104,6 +105,7 @@ enum WorkflowRunStatus {
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
enum WorkflowStepStatus {
|
|
108
|
+
draft
|
|
107
109
|
active
|
|
108
110
|
paused
|
|
109
111
|
deprecated
|
|
@@ -117,8 +119,6 @@ enum WorkflowStepRunStatus {
|
|
|
117
119
|
skipped
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
|
|
121
|
-
|
|
122
122
|
/// ─────────────────────────────────────────────
|
|
123
123
|
/// USERS & AUTH
|
|
124
124
|
/// ─────────────────────────────────────────────
|
|
@@ -146,9 +146,9 @@ model User {
|
|
|
146
146
|
|
|
147
147
|
metadata Json?
|
|
148
148
|
deletedAt DateTime?
|
|
149
|
-
plan Plan
|
|
150
|
-
tokenBalance Int
|
|
151
|
-
creditsUsed Int
|
|
149
|
+
plan Plan @default(free)
|
|
150
|
+
tokenBalance Int @default(0)
|
|
151
|
+
creditsUsed Int @default(0)
|
|
152
152
|
|
|
153
153
|
chatCount Int @default(0)
|
|
154
154
|
workflowCount Int @default(0)
|
|
@@ -480,7 +480,7 @@ model Workflow {
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
model WorkflowStep {
|
|
483
|
-
id String
|
|
483
|
+
id String @id @default(uuid())
|
|
484
484
|
workflowId String
|
|
485
485
|
type String
|
|
486
486
|
config Json
|
|
@@ -512,10 +512,10 @@ model WorkflowRun {
|
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
model WorkflowStepRun {
|
|
515
|
-
id String
|
|
515
|
+
id String @id @default(uuid())
|
|
516
516
|
workflowRunId String
|
|
517
517
|
workflowStepId String
|
|
518
|
-
status WorkflowStepRunStatus
|
|
518
|
+
status WorkflowStepRunStatus @default(pending)
|
|
519
519
|
input Json?
|
|
520
520
|
output Json?
|
|
521
521
|
error String?
|
|
@@ -742,7 +742,7 @@ model Subscription {
|
|
|
742
742
|
nextPayment DateTime?
|
|
743
743
|
|
|
744
744
|
razorpayCustomerId String?
|
|
745
|
-
razorpaySubscriptionId String?
|
|
745
|
+
razorpaySubscriptionId String? @unique
|
|
746
746
|
razorpayPlanId String?
|
|
747
747
|
|
|
748
748
|
metadata Json?
|