export type CodegenTableVO = {
  id: number
  tableId: number
  isParentMenuIdValid: boolean
  dataSourceConfigId: number
  scene: number
  tableName: string
  tableComment: string
  remark: string
  moduleName: string
  businessName: string
  className: string
  classComment: string
  author: string
  createTime: string
  updateTime: string
  templateType: number
  parentMenuId: number
}

export type CodegenColumnVO = {
  id: number
  tableId: number
  columnName: string
  dataType: string
  columnComment: string
  nullable: number
  primaryKey: number
  autoIncrement: string
  ordinalPosition: number
  javaType: string
  javaField: string
  dictType: string
  example: string
  createOperation: number
  updateOperation: number
  listOperation: number
  listOperationCondition: string
  listOperationResult: number
  htmlType: string
}
export type DatabaseTableVO = {
  name: string
  comment: string
}
export type CodegenDetailVO = {
  table: CodegenTableVO
  columns: CodegenColumnVO[]
}
export type CodegenPreviewVO = {
  filePath: string
  code: string
}
export type CodegenUpdateReqVO = {
  table: CodegenTableVO
  columns: CodegenColumnVO[]
}
export type CodegenCreateListReqVO = {
  dataSourceConfigId: number
  tableNames: string[]
}
