明树Git Lab

Commit 14b33e00 authored by zfp1's avatar zfp1

update

parent 9d3370f2
This diff is collapsed.
// const { DataTypes } = require('sequelize'); const { DataTypes } = require('sequelize');
// const sequelize = require('../index'); const sequelize = require('../index');
// // 财务评价指标----废弃 // 财务评价指标----废弃
// const projectCwpjzb = sequelize.define('projectCwpjzb', { const projectCwpjzb = sequelize.define('projectCwpjzb', {
// id: { id: {
// type: DataTypes.INTEGER, type: DataTypes.INTEGER,
// primaryKey: true, primaryKey: true,
// autoIncrement: true autoIncrement: true
// }, },
// name: { name: {
// type: DataTypes.STRING, type: DataTypes.STRING,
// comment: "指标名称" comment: "指标名称"
// }, },
// num: { num: {
// type: DataTypes.DECIMAL(20, 4), type: DataTypes.DECIMAL(20, 4),
// comment: "数量" comment: "数量"
// }, },
// unit: { unit: {
// type: DataTypes.STRING, type: DataTypes.STRING,
// comment: "单位" comment: "单位"
// }, },
// projectId: { projectId: {
// type: DataTypes.INTEGER, type: DataTypes.INTEGER,
// comment: "所属项目ID", comment: "所属项目ID",
// }, },
// }, { }, {
// tableName: 'jt_project_cwpjzb', // 指定表名(如果与模型名不同) tableName: 'jt_project_cwpjzb', // 指定表名(如果与模型名不同)
// timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置) timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
// }); });
// // 同步模型到数据库(创建表) // 同步模型到数据库(创建表)
// projectCwpjzb.sync({ projectCwpjzb.sync({
// // force: false, // force: false,
// // force: true ,//会删除已存在表并重新创建 // force: true ,//会删除已存在表并重新创建
// // alter: true // alter: true
// }) })
// .then(() => { .then(() => {
// console.log('projectCwpjzb 表同步成功'); console.log('projectCwpjzb 表同步成功');
// }); });
// module.exports = projectCwpjzb; module.exports = projectCwpjzb;
\ No newline at end of file \ 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 { DataTypes } = require('sequelize');
const sequelize = require('../index'); // const sequelize = require('../index');
// 债权融资 // // 债权融资
const ProjectZqrz = sequelize.define('ProjectZqrz', { // const ProjectZqrz = sequelize.define('ProjectZqrz', {
id: { // id: {
type: DataTypes.INTEGER, // type: DataTypes.INTEGER,
primaryKey: true, // primaryKey: true,
autoIncrement: true // autoIncrement: true
}, // },
wffzdzqrzjewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "我方负责的债权融资金额(万元)" }, // wffzdzqrzjewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "我方负责的债权融资金额(万元)" },
rzcbzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "融资成本债权" }, // rzcbzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "融资成本债权" },
qxzq: { type: DataTypes.INTEGER, allowNull: true, comment: "期限债权" }, // qxzq: { type: DataTypes.INTEGER, allowNull: true, comment: "期限债权" },
yjldsjzq: { type: DataTypes.DATE, allowNull: true, comment: "预计落地时间债权" }, // yjldsjzq: { type: DataTypes.DATE, allowNull: true, comment: "预计落地时间债权" },
projectId: { // projectId: {
type: DataTypes.INTEGER, // type: DataTypes.INTEGER,
comment: "所属项目ID", // comment: "所属项目ID",
}, // },
del: { // del: {
type: DataTypes.INTEGER, // type: DataTypes.INTEGER,
defaultValue: 0, // defaultValue: 0,
comment: "0 正常 1 删除" // comment: "0 正常 1 删除"
}, // },
}, { // }, {
tableName: 'jt_project_zqrz', // 指定表名(如果与模型名不同) // tableName: 'jt_project_zqrz', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置) // timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
}); // });
// 同步模型到数据库(创建表) // // 同步模型到数据库(创建表)
ProjectZqrz.sync({ // ProjectZqrz.sync({
force: false, // force: false,
// force: true ,//会删除已存在表并重新创建 // // force: true ,//会删除已存在表并重新创建
// alter: true // // alter: true
}) // })
.then(() => { // .then(() => {
console.log('ProjectZqrz 表同步成功'); // console.log('ProjectZqrz 表同步成功');
}); // });
module.exports = ProjectZqrz; // module.exports = ProjectZqrz;
\ No newline at end of file \ 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