feat: 更新分期方案初始化脚本,匹配最新表结构

- 更新表名和字段名为小写格式
- 修正字段类型以匹配实体类定义
- 新增缺失字段:scheme_type, down_payment_ratio等
- 添加索引优化查询性能
- 完善表和字段注释
This commit is contained in:
Admin
2025-09-11 18:42:41 +08:00
parent 9f5a484689
commit aca5fb0a44
1165 changed files with 497 additions and 900 deletions

View File

@ -0,0 +1,20 @@
import AutoImport from 'unplugin-auto-import/vite';
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
export default (path: any) => {
return AutoImport({
// 自动导入 Vue 相关函数
imports: ['vue', 'vue-router', '@vueuse/core', 'pinia'],
eslintrc: {
enabled: true,
filepath: './.eslintrc-auto-import.json',
globalsPropValue: true
},
resolvers: [
// 自动导入 Element Plus 相关函数ElMessage, ElMessageBox... (带样式)
ElementPlusResolver()
],
vueTemplate: true, // 是否在 vue 模板中自动导入
dts: path.resolve(path.resolve(__dirname, '../../src'), 'types', 'auto-imports.d.ts')
});
};