Currently the postgres world defines enums that aren't connected to a schema yet tables using it are. Imho everything in the world should stay in its separate schema.
See
|
export const workflowRunStatus = pgEnum( |
|
'status', |
|
mustBeMoreThanOne(WorkflowRunStatusSchema.options) |
|
); |
|
|
|
export const stepStatus = pgEnum( |
|
'step_status', |
|
mustBeMoreThanOne(StepStatusSchema.options) |
|
); |
|
|
|
export const waitStatus = pgEnum( |
|
'wait_status', |
|
mustBeMoreThanOne(WaitStatusSchema.options) |
|
); |
|
|
Currently the postgres world defines enums that aren't connected to a schema yet tables using it are. Imho everything in the world should stay in its separate schema.
See
workflow/packages/world-postgres/src/drizzle/schema.ts
Lines 32 to 46 in 5889d84