明树Git Lab

Commit 6839153c authored by zfp1's avatar zfp1

1

parent ce2096fc
......@@ -17,6 +17,10 @@ const ResourcesInfo = sequelize.define('ResourcesInfo', {
type: DataTypes.STRING,
comment: "资源库key"
},
key: {
type: DataTypes.STRING,
comment: "资源库字段key"
},
value: {
type: DataTypes.STRING,
comment: "资源库字段value"
......@@ -55,9 +59,9 @@ const ResourcesInfo = sequelize.define('ResourcesInfo', {
// 同步模型到数据库(创建表)
ResourcesInfo.sync({
force: false,
// force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
alter: true
})
.then(() => {
console.log('ResourcesInfo 表同步成功');
......
......@@ -13,12 +13,12 @@ const TzTzkz = sequelize.define('TzTzkz', {
type: DataTypes.STRING,
comment: "项目名称"
},
tzglzt: {
type: DataTypes.STRING,
comment: "投资管理主体"
},
// tzglzt: {
// type: DataTypes.STRING,
// comment: "投资管理主体"
// },
jcdw: {
type: DataTypes.STRING,
type: DataTypes.INTEGER,
comment: "决策单位",
},
xdpfsj: {
......
......@@ -18,43 +18,43 @@ const TzTzkzTzekz = sequelize.define('TzTzkzTzekz', {
comment: "项目",
},
zbgs: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "招标估算",
},
jcgs: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "决策估算",
},
pfgusuan: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "批复估算",
},
pfgs: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "批复概算",
},
tkjgs: {
type: DataTypes.INTEGER,
type:DataTypes.DECIMAL(20, 8),
comment: "同口径概算",
},
pfys: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "批复预算",
},
zbqy: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "招标签约",
},
sqyc: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "上期预测",
},
bqyc: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "本期预测",
},
bqjsq: {
type: DataTypes.INTEGER,
type: DataTypes.DECIMAL(20, 8),
comment: "本期-上期",
},
cysm: {
......@@ -73,7 +73,10 @@ const TzTzkzTzekz = sequelize.define('TzTzkzTzekz', {
type: DataTypes.INTEGER,
comment: "用来分组 区分期数"
},
jgjssj: {
type: DataTypes.STRING,
comment: "竣工决算审计",
},
// tzkzId: {
// type: DataTypes.INTEGER,
......@@ -111,9 +114,9 @@ const TzTzkzTzekz = sequelize.define('TzTzkzTzekz', {
// 同步模型到数据库(创建表)
TzTzkzTzekz.sync({
force: false,
// force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
alter: true
})
.then(() => {
console.log('TzTzkzTzekz 表同步成功');
......
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