import {DbColumnVO} from "@/api/tool/gen/types";

export interface AiSqlTableVO {
  /**
   * 编号
   */
  tableId: string | number;

  /**
   * 表名称
   */
  tableName: string;

  /**
   * 表描述
   */
  tableComment: string;

  /**
   * 关联子表的表名
   */
  subTableName: string;

  /**
   * 子表关联的外键名
   */
  subTableFkName: string;

}

export interface AiSqlTableForm extends BaseEntity {
  /**
   * 编号
   */
  tableId?: string | number;

  /**
   * 表名称
   */
  tableName?: string;

  /**
   * 表描述
   */
  tableComment?: string;

  /**
   * 关联子表的表名
   */
  subTableName?: string;

  /**
   * 子表关联的外键名
   */
  subTableFkName?: string;

}

export interface AiSqlTableQuery extends PageQuery {

  /**
   * 编号
   */
  tableId?: string | number;

  /**
   * 表名称
   */
  tableName?: string;

  /**
   * 表描述
   */
  tableComment?: string;

  /**
   * 关联子表的表名
   */
  subTableName?: string;

  /**
   * 子表关联的外键名
   */
  subTableFkName?: string;

    /**
     * 日期范围参数
     */
    params?: any;
}



export interface DbTableQuery extends PageQuery {
  dataName: string;
  tableName: string;
  tableComment: string;
}

export interface DbTableVO {
  createDept?: any;
  tableId?: any;
  tableName: string;
  tableComment: string;
  subTableName?: any;
  subTableFkName?: any;
  className?: any;
  tplCategory?: any;
  packageName?: any;
  moduleName?: any;
  businessName?: any;
  functionName?: any;
  functionAuthor?: any;
  genType?: any;
  genPath?: any;
  pkColumn?: any;
  columns: DbColumnVO[];
  options?: any;
  remark?: any;
  treeCode?: any;
  treeParentCode?: any;
  treeName?: any;
  menuIds?: any;
  parentMenuId?: any;
  parentMenuName?: any;
  tree: boolean;
  crud: boolean;
}
