feat: update workflow page ux

This commit is contained in:
BennyKok
2024-01-19 18:12:07 +08:00
parent ffb117d85d
commit c7772ca91e
4 changed files with 103 additions and 92 deletions
+5 -1
View File
@@ -35,7 +35,11 @@ export const workflowTable = dbSchema.table("workflows", {
updated_at: timestamp("updated_at").defaultNow().notNull(),
});
export const workflowRelations = relations(workflowTable, ({ many }) => ({
export const workflowRelations = relations(workflowTable, ({ many, one }) => ({
user: one(usersTable, {
fields: [workflowTable.user_id],
references: [usersTable.id],
}),
versions: many(workflowVersionTable),
deployments: many(deploymentsTable),
}));