明树Git Lab

Commit 14b33e00 authored by zfp1's avatar zfp1

update

parent 9d3370f2
...@@ -84,6 +84,7 @@ const Project = sequelize.define('Project', { ...@@ -84,6 +84,7 @@ const Project = sequelize.define('Project', {
//项目基本信息 //项目基本信息
projectName: { type: DataTypes.STRING, allowNull: true, comment: "项目名称" }, projectName: { type: DataTypes.STRING, allowNull: true, comment: "项目名称" },
projectCode: { type: DataTypes.STRING, allowNull: true, comment: "项目编号" }, projectCode: { type: DataTypes.STRING, allowNull: true, comment: "项目编号" },
cym: { type: DataTypes.STRING, allowNull: true, comment: "曾用名" },
sfzjc: { type: DataTypes.INTEGER, allowNull: true, comment: "是否再决策" }, // 1是 2 否 sfzjc: { type: DataTypes.INTEGER, allowNull: true, comment: "是否再决策" }, // 1是 2 否
projectForeignName: { type: DataTypes.STRING, allowNull: true, comment: "项目外文名称" }, projectForeignName: { type: DataTypes.STRING, allowNull: true, comment: "项目外文名称" },
sfnjlhtxm: { type: DataTypes.INTEGER, allowNull: true, comment: "是否能建联合体项目" }, // 1是 2 否 sfnjlhtxm: { type: DataTypes.INTEGER, allowNull: true, comment: "是否能建联合体项目" }, // 1是 2 否
...@@ -95,6 +96,14 @@ const Project = sequelize.define('Project', { ...@@ -95,6 +96,14 @@ const Project = sequelize.define('Project', {
financialStatementType: { type: DataTypes.STRING, allowNull: true, comment: "财务报表类型" }, //TODO:下拉 financialStatementType: { type: DataTypes.STRING, allowNull: true, comment: "财务报表类型" }, //TODO:下拉
zfsphzbajb: { type: DataTypes.STRING, allowNull: true, comment: "政府审批(核准、备案)级别" }, //TODO:下拉 zfsphzbajb: { type: DataTypes.STRING, allowNull: true, comment: "政府审批(核准、备案)级别" }, //TODO:下拉
sflxbqyscx: { type: DataTypes.INTEGER, allowNull: true, comment: "是否履行标前预审程序" }, sflxbqyscx: { type: DataTypes.INTEGER, allowNull: true, comment: "是否履行标前预审程序" },
xmztz: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目总投资" },
glzt: { type: DataTypes.STRING, allowNull: true, comment: "管理主体" },
tzms: { type: DataTypes.STRING, allowNull: true, comment: "投资模式" },
dwqypp: { type: DataTypes.STRING, allowNull: true, comment: "对外签约品牌" },
xmzjly: { type: DataTypes.STRING, allowNull: true, comment: "项目资金来源" },
swbxmlx: { type: DataTypes.STRING, allowNull: true, comment: "商务部项目类型" }, //TODO:下拉
xmlx: { type: DataTypes.STRING, allowNull: true, comment: "项目类型" }, //TODO:下拉
sfpppxm: { type: DataTypes.INTEGER, allowNull: true, comment: "是否PPP项目" },
//项目所在地 //项目所在地
domesticOrOverseas: { type: DataTypes.STRING, allowNull: true, comment: "境内/外" },//TODO:下拉 domesticOrOverseas: { type: DataTypes.STRING, allowNull: true, comment: "境内/外" },//TODO:下拉
sjnzjjw: { type: DataTypes.STRING, allowNull: true, comment: "省(境内)/洲际(境外)" },//TODO:下拉 sjnzjjw: { type: DataTypes.STRING, allowNull: true, comment: "省(境内)/洲际(境外)" },//TODO:下拉
...@@ -123,6 +132,11 @@ const Project = sequelize.define('Project', { ...@@ -123,6 +132,11 @@ const Project = sequelize.define('Project', {
tzznejfl: { type: DataTypes.STRING, allowNull: true, comment: "投资指南二级分类" },//TODO:下拉 tzznejfl: { type: DataTypes.STRING, allowNull: true, comment: "投资指南二级分类" },//TODO:下拉
tzznflgs: { type: DataTypes.STRING, allowNull: true, comment: "投资指南分类概述" }, tzznflgs: { type: DataTypes.STRING, allowNull: true, comment: "投资指南分类概述" },
gmjjhy: { type: DataTypes.STRING, allowNull: true, comment: "国民经济行业" },//TODO:下拉 gmjjhy: { type: DataTypes.STRING, allowNull: true, comment: "国民经济行业" },//TODO:下拉
sfnrbtml: { type: DataTypes.STRING, allowNull: true, comment: "是否纳入补贴目录" },
njsfqtf: { type: DataTypes.INTEGER, allowNull: true, comment: "能建是否牵头方" }, //1是 2否
sfylx: { type: DataTypes.INTEGER, allowNull: true, comment: "是否已立项" }, //1是 2否
sfzdqy: { type: DataTypes.INTEGER, allowNull: true, comment: "是否重点区域" }, //1是 2否
zdqy: { type: DataTypes.STRING, allowNull: true, comment: "重点区域" },//下拉
// 特别关注、特别监管类等信息 // 特别关注、特别监管类等信息
sfxbgjfzggwhswbhz: { type: DataTypes.INTEGER, allowNull: true, comment: "是否需报国家发展改革委和商务部核准" },//TODO:下拉 sfxbgjfzggwhswbhz: { type: DataTypes.INTEGER, allowNull: true, comment: "是否需报国家发展改革委和商务部核准" },//TODO:下拉
sfgjldjq: { type: DataTypes.INTEGER, allowNull: true, comment: "是否国家领导见签" },//TODO:下拉 sfgjldjq: { type: DataTypes.INTEGER, allowNull: true, comment: "是否国家领导见签" },//TODO:下拉
...@@ -133,21 +147,28 @@ const Project = sequelize.define('Project', { ...@@ -133,21 +147,28 @@ const Project = sequelize.define('Project', {
jsnrjgm: { type: DataTypes.TEXT, allowNull: true, comment: "建设内容及规模" }, jsnrjgm: { type: DataTypes.TEXT, allowNull: true, comment: "建设内容及规模" },
xmbyx: { type: DataTypes.TEXT, allowNull: true, comment: "项目必要性" }, xmbyx: { type: DataTypes.TEXT, allowNull: true, comment: "项目必要性" },
xmkxx: { type: DataTypes.TEXT, allowNull: true, comment: "项目可行性" }, xmkxx: { type: DataTypes.TEXT, allowNull: true, comment: "项目可行性" },
qtsm: { type: DataTypes.STRING, allowNull: true, comment: "其他说明" },
//立项资料 -------- 项目表关联材料表 使用中间表 //立项资料 -------- 项目表关联材料表 使用中间表
// 项目投资总额 // 项目投资总额
// xmzbjwy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目资本金(万元)" }, // xmzbjwy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目资本金(万元)" },
// //
wfczrjcgbl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "我方出资人及持股比例" },
sjnjfsgdw: { type: DataTypes.STRING, allowNull: true, comment: "涉及能建方施工单位" },
// 财务评价指标 // 财务评价指标(表)
xmtznbsylsh: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目投资内部收益率(税后)" }, // xmtznbsylsq: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目投资内部收益率(税前)" },
xmzbjnbsyl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目资本金内部收益率" }, // xmtznbsylsh: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目投资内部收益率(税后)" },
xmtzhsqsq: { type: DataTypes.STRING, allowNull: true, comment: "项目投资回收期(税前)" }, // xmzbjnbsyl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目资本金内部收益率" },
njfnbsyl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "能建方内部收益率" }, // xmzbjhsq: { type: DataTypes.STRING, allowNull: true, comment: "项目资本金回收期" },
jxjlhznf: { type: DataTypes.STRING, allowNull: true, comment: "净现金流回正年份" }, // yccblrlfdcxm: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "预测成本利润率(房地产项目)" },
jlrlhznf: { type: DataTypes.STRING, allowNull: true, comment: "净利润流回正年份" }, // xmtzhsqsq: { type: DataTypes.STRING, allowNull: true, comment: "项目投资回收期(税前)" },
kfplrhznf: { type: DataTypes.STRING, allowNull: true, comment: "可分配利润回正年份" }, // njfnbsyl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "能建方内部收益率" },
// njfnbhsq: { type: DataTypes.STRING, allowNull: true, comment: "能建方内部回收期" },
// jxjlhznf: { type: DataTypes.STRING, allowNull: true, comment: "净现金流回正年份" },
// jlrlhznf: { type: DataTypes.STRING, allowNull: true, comment: "净利润流回正年份" },
// kfplrhznf: { type: DataTypes.STRING, allowNull: true, comment: "可分配利润回正年份" },
/** /**
...@@ -168,6 +189,8 @@ const Project = sequelize.define('Project', { ...@@ -168,6 +189,8 @@ const Project = sequelize.define('Project', {
qtczqznjfczrmbwb: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "其他出资_其中:能建方出资(人民币/外币)" }, qtczqznjfczrmbwb: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "其他出资_其中:能建方出资(人民币/外币)" },
pfztz: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "批复总投资" }, pfztz: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "批复总投资" },
//特别关注、特别监管类等信息
sfydylyxgj: { type: DataTypes.INTEGER, allowNull: true, comment: "是否一带一路沿线国家" },
//核心边界与条件 //核心边界与条件
//项目立项信息 //项目立项信息
qthysyqk: { type: DataTypes.TEXT, allowNull: true, comment: "其他会议审议情况" }, qthysyqk: { type: DataTypes.TEXT, allowNull: true, comment: "其他会议审议情况" },
...@@ -185,23 +208,24 @@ const Project = sequelize.define('Project', { ...@@ -185,23 +208,24 @@ const Project = sequelize.define('Project', {
dbje: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "担保金额" }, dbje: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "担保金额" },
//我方担保及债权融资情况(表) //我方担保及债权融资情况
// 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.DECIMAL(19, 8), allowNull: true, comment: "期限债权" }, qxzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "期限债权" },
// yjldsjzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "预计落地时间债权" }, yjldsjzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "预计落地时间债权" },
// 带动情况 // 带动情况
// ddgchte: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "带动工程合同额" }, ddgchte: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "带动工程合同额" },
// tzddb: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "投资带动比" }, tzddb: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "投资带动比" },
// gclrwy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "工程利润(万元)" }, gclrwy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "工程利润(万元)" },
// gclrl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "工程利润率(%)" }, gclrl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "工程利润率(%)" },
tzztscsbsj: { type: DataTypes.DATE, allowNull: true, comment: "投资主体首次申报时间" }, tzztscsbsj: { type: DataTypes.DATE, allowNull: true, comment: "投资主体首次申报时间" },
hqwcsj: { type: DataTypes.DATE, allowNull: true, comment: "会签完成时间" }, hqwcsj: { type: DataTypes.DATE, allowNull: true, comment: "会签完成时间" },
scfhsj: { type: DataTypes.DATE, allowNull: true, comment: "首次发函时间" }, scfhsj: { type: DataTypes.DATE, allowNull: true, comment: "首次发函时间" },
bczlsj: { type: DataTypes.DATE, allowNull: true, comment: "补充资料时间" }, bczlsj: { type: DataTypes.DATE, allowNull: true, comment: "补充资料时间" },
shr: { type: DataTypes.STRING, allowNull: true, comment: "审核人" },
jcqthysyqk: { type: DataTypes.TEXT, allowNull: true, comment: "决策-其他会议审议情况" }, jcqthysyqk: { type: DataTypes.TEXT, allowNull: true, comment: "决策-其他会议审议情况" },
jczzpfyj: { type: DataTypes.STRING, allowNull: true, comment: "决策-最终批复意见" }, jczzpfyj: { type: DataTypes.STRING, allowNull: true, comment: "决策-最终批复意见" },
...@@ -209,6 +233,17 @@ const Project = sequelize.define('Project', { ...@@ -209,6 +233,17 @@ const Project = sequelize.define('Project', {
jcxmpfwh: { type: DataTypes.STRING, allowNull: true, comment: "决策-项目批复文号" }, jcxmpfwh: { type: DataTypes.STRING, allowNull: true, comment: "决策-项目批复文号" },
jcwtgzyyyyyq: { type: DataTypes.TEXT, allowNull: true, comment: "决策-未通过主要原因与要求" }, jcwtgzyyyyyq: { type: DataTypes.TEXT, allowNull: true, comment: "决策-未通过主要原因与要求" },
//政府审批(核准、备案)文件
sfyjzfsp: { type: DataTypes.INTEGER, allowNull: true, comment: "是否已经政府审批" }, //1是 2否
spdwmc: { type: DataTypes.STRING, allowNull: true, comment: "审批单位名称(全称)" },
pwwh: { type: DataTypes.STRING, allowNull: true, comment: "批文文号" },
spjb: { type: DataTypes.STRING, allowNull: true, comment: "审批级别" }, //TODO:下拉
spje: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "审批金额(万元)" },
spsj: { type: DataTypes.DATE, allowNull: true, comment: "审批时间" },
//里程碑计划审批表文件
//
// ---从此往下待确定--- // // ---从此往下待确定--- //
...@@ -523,7 +558,7 @@ const Project = sequelize.define('Project', { ...@@ -523,7 +558,7 @@ const Project = sequelize.define('Project', {
// sjzt: { type: DataTypes.STRING, allowNull: true, comment: "数据状态" }, // sjzt: { type: DataTypes.STRING, allowNull: true, comment: "数据状态" },
// xmtzzewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目投资总额(万元)" }, // xmtzzewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目投资总额(万元)" },
// pjlx: { type: DataTypes.STRING, allowNull: true, comment: "评价类型" }, // pjlx: { type: DataTypes.STRING, allowNull: true, comment: "评价类型" },
// tzms: { type: DataTypes.STRING, allowNull: true, comment: "投资模式" }, //
// xmfl: { type: DataTypes.STRING, allowNull: true, comment: "项目分类" }, // xmfl: { type: DataTypes.STRING, allowNull: true, comment: "项目分类" },
// tbr: { type: DataTypes.STRING, allowNull: true, comment: "填报人" }, // tbr: { type: DataTypes.STRING, allowNull: true, comment: "填报人" },
// xmwchjhwcsj: { type: DataTypes.DATE, allowNull: true, comment: "项目完成或计划完成时间" }, // xmwchjhwcsj: { type: DataTypes.DATE, allowNull: true, comment: "项目完成或计划完成时间" },
...@@ -568,7 +603,7 @@ const Project = sequelize.define('Project', { ...@@ -568,7 +603,7 @@ const Project = sequelize.define('Project', {
// xmzbj: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目资本金" }, // xmzbj: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "项目资本金" },
// pfsj: { type: DataTypes.DATE, allowNull: true, comment: "批复时间" }, // pfsj: { type: DataTypes.DATE, allowNull: true, comment: "批复时间" },
// sbdwjcsj: { type: DataTypes.DATE, allowNull: true, comment: "申报单位决策时间" }, // sbdwjcsj: { type: DataTypes.DATE, allowNull: true, comment: "申报单位决策时间" },
// shr: { type: DataTypes.STRING, allowNull: true, comment: "审核人" }, //
// syly: { type: DataTypes.STRING, allowNull: true, comment: "收益来源" }, // syly: { type: DataTypes.STRING, allowNull: true, comment: "收益来源" },
// njzgb: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "能建占股比" }, // njzgb: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "能建占股比" },
// cblrl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "成本利润率" }, // cblrl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "成本利润率" },
...@@ -1372,7 +1407,7 @@ const Project = sequelize.define('Project', { ...@@ -1372,7 +1407,7 @@ const Project = sequelize.define('Project', {
// tblxr: { type: DataTypes.STRING, allowNull: true, comment: "填报联系人" }, // tblxr: { type: DataTypes.STRING, allowNull: true, comment: "填报联系人" },
// tblxrdh: { type: DataTypes.STRING, allowNull: true, comment: "填报联系人电话" }, // tblxrdh: { type: DataTypes.STRING, allowNull: true, comment: "填报联系人电话" },
// xmdzyjsnr: { type: DataTypes.STRING, allowNull: true, comment: "项目的主要(建设)内容" }, // xmdzyjsnr: { type: DataTypes.STRING, allowNull: true, comment: "项目的主要(建设)内容" },
// wfczrjcgbl: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "我方出资人及持股比例" }, //
// xmqtznbsylsps: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目全投资内部收益率审批时" }, // xmqtznbsylsps: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目全投资内部收益率审批时" },
// xmqtznbsylyj: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目全投资内部收益率预计" }, // xmqtznbsylyj: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目全投资内部收益率预计" },
// xmzbjnbsylsps: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目资本金内部收益率审批时" }, // xmzbjnbsylsps: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "项目资本金内部收益率审批时" },
...@@ -1423,7 +1458,7 @@ const Project = sequelize.define('Project', { ...@@ -1423,7 +1458,7 @@ const Project = sequelize.define('Project', {
// yccblrlfdcxm: { type: DataTypes.DECIMAL(3, 2), allowNull: true, comment: "预测成本利润率(房地产项目)" }, //
// dwgczjsl: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "单位工程造价_数量" }, // dwgczjsl: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "单位工程造价_数量" },
// dwgczjdw: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "单位工程造价_单位" }, // dwgczjdw: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "单位工程造价_单位" },
// xsfwnlsl: { type: DataTypes.STRING, allowNull: true, comment: "销售/服务能力_数量" }, // xsfwnlsl: { type: DataTypes.STRING, allowNull: true, comment: "销售/服务能力_数量" },
...@@ -1443,7 +1478,7 @@ const Project = sequelize.define('Project', { ...@@ -1443,7 +1478,7 @@ const Project = sequelize.define('Project', {
// spyj: { type: DataTypes.STRING, allowNull: true, comment: "审批意见" }, // spyj: { type: DataTypes.STRING, allowNull: true, comment: "审批意见" },
// xgshcl: { type: DataTypes.STRING, allowNull: true, comment: "相关上会材料" }, // xgshcl: { type: DataTypes.STRING, allowNull: true, comment: "相关上会材料" },
// sfythxmzx: { type: DataTypes.STRING, allowNull: true, comment: "是否一体化项目子项" }, // sfythxmzx: { type: DataTypes.STRING, allowNull: true, comment: "是否一体化项目子项" },
// sfnrbtml: { type: DataTypes.STRING, allowNull: true, comment: "是否纳入补贴目录" }, //
// glxm: { type: DataTypes.STRING, allowNull: true, comment: "关联项目" }, // glxm: { type: DataTypes.STRING, allowNull: true, comment: "关联项目" },
......
// 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