The statuses a row may move to from each status; an empty list is terminal. Declare one per status column beside its table:
export const SWAP_TRANSITIONS = { CREATED: ["PENDING"], ...} as const satisfies Transitions<SelectSwap["status"]>; Copy
export const SWAP_TRANSITIONS = { CREATED: ["PENDING"], ...} as const satisfies Transitions<SelectSwap["status"]>;
transition() in @cfxlabsinc/db/postgres writes a move only from a status whose list holds the target.
transition()
@cfxlabsinc/db/postgres
The statuses a row may move to from each status; an empty list is terminal. Declare one per status column beside its table:
transition()in@cfxlabsinc/db/postgreswrites a move only from a status whose list holds the target.