task-f.3
This commit is contained in:
@@ -645,7 +645,11 @@ export const crmApprovalWorkflows = pgTable(
|
||||
code: text('code').notNull(),
|
||||
name: text('name').notNull(),
|
||||
entityType: text('entity_type').notNull(),
|
||||
description: text('description'),
|
||||
isSystem: boolean('is_system').default(false).notNull(),
|
||||
isActive: boolean('is_active').default(true).notNull(),
|
||||
createdBy: text('created_by').notNull(),
|
||||
updatedBy: text('updated_by').notNull(),
|
||||
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
updatedAt: timestamp('updated_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
deletedAt: timestamp('deleted_at', { withTimezone: true })
|
||||
@@ -667,6 +671,7 @@ export const crmApprovalSteps = pgTable(
|
||||
stepNumber: integer('step_number').notNull(),
|
||||
roleCode: text('role_code').notNull(),
|
||||
roleName: text('role_name').notNull(),
|
||||
approvalMode: text('approval_mode').default('sequential').notNull(),
|
||||
isRequired: boolean('is_required').default(true).notNull(),
|
||||
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
updatedAt: timestamp('updated_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
|
||||
Reference in New Issue
Block a user