明树Git Lab

Commit 14b33e00 authored by zfp1's avatar zfp1

update

parent 9d3370f2
This diff is collapsed.
// const { DataTypes } = require('sequelize');
// const sequelize = require('../index');
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
// // 财务评价指标----废弃
// const projectCwpjzb = sequelize.define('projectCwpjzb', {
// id: {
// type: DataTypes.INTEGER,
// primaryKey: true,
// autoIncrement: true
// },
// name: {
// type: DataTypes.STRING,
// comment: "指标名称"
// },
// num: {
// type: DataTypes.DECIMAL(20, 4),
// comment: "数量"
// },
// unit: {
// type: DataTypes.STRING,
// comment: "单位"
// },
// projectId: {
// type: DataTypes.INTEGER,
// comment: "所属项目ID",
// },
// }, {
// tableName: 'jt_project_cwpjzb', // 指定表名(如果与模型名不同)
// timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
// });
// 财务评价指标----废弃
const projectCwpjzb = sequelize.define('projectCwpjzb', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
name: {
type: DataTypes.STRING,
comment: "指标名称"
},
num: {
type: DataTypes.DECIMAL(20, 4),
comment: "数量"
},
unit: {
type: DataTypes.STRING,
comment: "单位"
},
projectId: {
type: DataTypes.INTEGER,
comment: "所属项目ID",
},
}, {
tableName: 'jt_project_cwpjzb', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// // 同步模型到数据库(创建表)
// projectCwpjzb.sync({
// // force: false,
// // force: true ,//会删除已存在表并重新创建
// // alter: true
// })
// .then(() => {
// console.log('projectCwpjzb 表同步成功');
// });
// 同步模型到数据库(创建表)
projectCwpjzb.sync({
// force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.then(() => {
console.log('projectCwpjzb 表同步成功');
});
// module.exports = projectCwpjzb;
\ No newline at end of file
module.exports = projectCwpjzb;
\ No newline at end of file
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
//决策主体审核情况
const ProjectJczt = sequelize.define('ProjectJczt', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
hylx: { type: DataTypes.STRING, allowNull: true, comment: "会议类型" },
hylx: { type: DataTypes.STRING, allowNull: true, comment: "会议名称" },
jc: { type: DataTypes.STRING, allowNull: true, comment: "届次" },
zkrq: { type: DataTypes.DATE, allowNull: true, comment: "召开日期" },
jl: { type: DataTypes.STRING, allowNull: true, comment: "结论" },
qtsm: { type: DataTypes.TEXT, allowNull: true, comment: "决策结论" },
qtsm: { type: DataTypes.TEXT, allowNull: true, comment: "其他说明" },
projectId: {
type: DataTypes.INTEGER,
comment: "所属项目ID",
},
del: {
type: DataTypes.INTEGER,
defaultValue: 0,
comment: "0 正常 1 删除"
},
}, {
tableName: 'jt_project_jczt', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// 同步模型到数据库(创建表)
ProjectJczt.sync({
force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.then(() => {
console.log('ProjectJczt 表同步成功');
});
module.exports = ProjectJczt;
\ No newline at end of file
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
const File = require('../system/file');
// yjlx: { type: DataTypes.STRING, allowNull: true, comment: "意见类型" },
// pfyj: { type: DataTypes.STRING, allowNull: true, comment: "批复意见" },
// pfyjsj: { type: DataTypes.DATE, allowNull: true, comment: "批复意见时间" },
// zxhf: { type: DataTypes.STRING, allowNull: true, comment: "执行回复" },
// zxhfsj: { type: DataTypes.DATE, allowNull: true, comment: "执行回复时间" },
// zxhffj: { type: DataTypes.STRING, allowNull: true, comment: "执行回复附件" },
// wlsqksm: { type: DataTypes.STRING, allowNull: true, comment: "未落实情况说明" },
// 审批意见
const ProjectLcbjd = sequelize.define('ProjectLcbjd', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
lcbjdmc: {
type: DataTypes.STRING,
comment: "里程碑节点名称"
},
jdwcms: {
type: DataTypes.TEXT,
comment: "节点完成描述"
},
yjwcsj: {
type: DataTypes.DATE,
comment: "预计完成时间"
},
projectId: {
type: DataTypes.INTEGER,
comment: "所属项目ID",
},
del: {
type: DataTypes.INTEGER,
defaultValue: 0,
comment: "0 正常 1 删除"
},
}, {
tableName: 'jt_project_lcbjd', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// 同步模型到数据库(创建表)
ProjectLcbjd.sync({
force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.then(() => {
console.log('ProjectLcbjd 表同步成功');
});
module.exports = ProjectLcbjd;
\ No newline at end of file
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
// const { DataTypes } = require('sequelize');
// const sequelize = require('../index');
// 债权融资
const ProjectZqrz = sequelize.define('ProjectZqrz', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
wffzdzqrzjewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "我方负责的债权融资金额(万元)" },
rzcbzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "融资成本债权" },
qxzq: { type: DataTypes.INTEGER, allowNull: true, comment: "期限债权" },
yjldsjzq: { type: DataTypes.DATE, allowNull: true, comment: "预计落地时间债权" },
projectId: {
type: DataTypes.INTEGER,
comment: "所属项目ID",
},
del: {
type: DataTypes.INTEGER,
defaultValue: 0,
comment: "0 正常 1 删除"
},
}, {
tableName: 'jt_project_zqrz', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// // 债权融资
// const ProjectZqrz = sequelize.define('ProjectZqrz', {
// id: {
// type: DataTypes.INTEGER,
// primaryKey: true,
// autoIncrement: true
// },
// wffzdzqrzjewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "我方负责的债权融资金额(万元)" },
// rzcbzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "融资成本债权" },
// qxzq: { type: DataTypes.INTEGER, allowNull: true, comment: "期限债权" },
// yjldsjzq: { type: DataTypes.DATE, allowNull: true, comment: "预计落地时间债权" },
// projectId: {
// type: DataTypes.INTEGER,
// comment: "所属项目ID",
// },
// del: {
// type: DataTypes.INTEGER,
// defaultValue: 0,
// comment: "0 正常 1 删除"
// },
// }, {
// tableName: 'jt_project_zqrz', // 指定表名(如果与模型名不同)
// timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
// });
// 同步模型到数据库(创建表)
ProjectZqrz.sync({
force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.then(() => {
console.log('ProjectZqrz 表同步成功');
});
// // 同步模型到数据库(创建表)
// ProjectZqrz.sync({
// force: false,
// // force: true ,//会删除已存在表并重新创建
// // alter: true
// })
// .then(() => {
// console.log('ProjectZqrz 表同步成功');
// });
module.exports = ProjectZqrz;
\ No newline at end of file
// module.exports = ProjectZqrz;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment