-
Notifications
You must be signed in to change notification settings - Fork 0
Fixed #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #13
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "tailwindCSS.experimental.configFile": "packages/ui/src/styles/globals.css" | ||
| "tailwindCSS.experimental.configFile": "packages/ui/src/styles/globals.css", | ||
| "prisma.pinToPrisma6": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,62 +1,31 @@ | ||
| // This is your Prisma schema file, | ||
| // learn more about it in the docs: https://pris.ly/d/prisma-schema | ||
|
|
||
| // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? | ||
| // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init | ||
|
|
||
| generator client { | ||
| provider = "prisma-client-js" | ||
| output = "../src/generated" | ||
|
|
||
| } | ||
|
|
||
| datasource db { | ||
| provider = "postgresql" | ||
| url = env("DATABASE_URL") | ||
| provider = "postgresql" | ||
| url = env("DATABASE_URL") | ||
| } | ||
|
|
||
| model User { | ||
| id String @id @default(cuid()) | ||
| name String? | ||
| email String @unique | ||
| password String | ||
| createdAt DateTime @default(now()) | ||
| updatedAt DateTime @updatedAt | ||
| workflow workflow[] | ||
| } | ||
|
|
||
| model workflow { | ||
| id String @id @default(cuid()) | ||
| name String | ||
| createdAt DateTime @default(now()) | ||
| updateAt DateTime @default(now()) | ||
| description String | ||
| status WorkFlowStatus | ||
| userId String | ||
| config Json | ||
| user User @relation(fields: [userId], references: [id]) | ||
| TriggerId String @unique | ||
| Trigger Triggers @relation(fields: [TriggerId], references: [id]) | ||
| NodeId String @unique | ||
| Node Nodes @relation(fields: [NodeId], references: [id]) | ||
| } | ||
|
|
||
| enum WorkFlowStatus { | ||
| Start | ||
| Pending | ||
| InProgress | ||
| ReConnecting | ||
| Failed | ||
| Completed | ||
| id String @id @default(cuid()) | ||
| name String? | ||
| email String @unique | ||
| password String | ||
| createdAt DateTime @default(now()) | ||
| updatedAt DateTime @updatedAt | ||
| Credentials Credentials[] | ||
| Workflow Workflow[] | ||
| } | ||
|
|
||
| model Triggers { | ||
| id String @id @default(cuid()) | ||
| name String | ||
| typeID String | ||
| config Json | ||
| typeID String | ||
| config Json | ||
| type AvailableTriggers @relation(fields: [typeID], references: [id]) | ||
| workflow workflow? | ||
| Workflow Workflow? | ||
| } | ||
|
|
||
| model AvailableTriggers { | ||
|
|
@@ -68,19 +37,55 @@ model AvailableTriggers { | |
| } | ||
|
|
||
| model AvailableNodes { | ||
| id String @id @default(cuid()) | ||
| name String | ||
| typeId String @unique | ||
| config Json | ||
| Node Nodes[] | ||
| id String @id @default(cuid()) | ||
| name String | ||
| typeId String @unique | ||
| config Json | ||
| Node Nodes[] | ||
| } | ||
|
|
||
| model Nodes { | ||
| id String @id @default(cuid()) | ||
| name String | ||
| workflow workflow? | ||
| typeId String | ||
| type AvailableNodes @relation(fields: [typeId], references: [id]) | ||
| config Json | ||
| position Int | ||
| id String @id @default(cuid()) | ||
| name String | ||
| typeId String | ||
| config Json | ||
| position Int | ||
| Credentials Credentials[] | ||
| type AvailableNodes @relation(fields: [typeId], references: [id]) | ||
| Workflow Workflow? | ||
| } | ||
|
|
||
| model Credentials { | ||
| id String @id | ||
| userId String | ||
| type String | ||
| config Json | ||
| nodeId String? | ||
| Nodes Nodes? @relation(fields: [nodeId], references: [id]) | ||
| User User @relation(fields: [userId], references: [id]) | ||
| } | ||
|
|
||
| model Workflow { | ||
| id String @id | ||
| name String | ||
| createdAt DateTime @default(now()) | ||
| updateAt DateTime @default(now()) | ||
| description String | ||
| status WorkFlowStatus | ||
| userId String | ||
| config Json | ||
| TriggerId String @unique | ||
| NodeId String @unique | ||
| Nodes Nodes @relation(fields: [NodeId], references: [id]) | ||
| Triggers Triggers @relation(fields: [TriggerId], references: [id]) | ||
| User User @relation(fields: [userId], references: [id]) | ||
| } | ||
|
Comment on lines
+58
to
+82
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainFix likely typo on In
Suggested adjustment: model Workflow {
id String @id
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
// ...
}Optionally, if you don’t rely on externally provided IDs, you may also want Length of output: 2103 🏁 Script executed: #!/bin/bash
# Check if there are other models with ID fields to understand the pattern
rg -n '@id|@default' packages/db/prisma/schema.prismaLength of output: 446 Fix typo In
In
model Credentials {
id String @id @default(cuid())
// ...
}
model Workflow {
id String @id @default(cuid())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
// ...
}🤖 Prompt for AI Agents |
||
|
|
||
| enum WorkFlowStatus { | ||
| Start | ||
| Pending | ||
| InProgress | ||
| ReConnecting | ||
| Failed | ||
| Completed | ||
| } | ||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Verification inconclusive
|| truemasks failures fromprisma generate/tsc/mkdirBecause of shell operator associativity,
|| trueapplies to the wholeprisma generate && tsc -b && mkdir ... && cp ...chain, so failures in earlier steps are silently ignored, not just a missing*.nodematch.Consider grouping just the
cp:I'll verify the review comment by checking shell operator precedence and associativity rules.
|| truemasks failures from the entire command chainIn bash, AND and OR lists are executed with left associativity, and
&&and||have equal precedence. This means the command chain parses as:When the left side fails (from
prisma generate,tsc, ormkdir),trueexecutes and succeeds, allowing the finalcp -rto run. This silently swallows build errors.The proposed fix is correct—wrap only the
cpcommand:📝 Committable suggestion
🤖 Prompt for AI Agents