明树Git Lab

Commit 6839153c authored by zfp1's avatar zfp1

1

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