Commit f89391f7 by chenjinjing

no message

parent 6f48228e
......@@ -267,8 +267,8 @@ export const TablesConfig = [
association: []
},
{
tableNameCn:'党建质量',
tableName:'partyQuality',
tableNameCn:'党建质量', //党建质量
tableName:'partyquality',
schema:{
pqId: { //自增的党建质量id
type:Sequelize.INTEGER(20), //表示属性的数据类型
......@@ -280,13 +280,32 @@ export const TablesConfig = [
bId: {type:Sequelize.INTEGER, allowNull:false}, //支部表id 外键
primaryIndicators: {type:Sequelize.INTEGER, allowNull:false}, //一级指标 枚举
secondaryIndicators: {type:Sequelize.INTEGER, allowNull:false}, //二级指标 枚举
thirdLevelScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //三级指标分值
},
association: []
},
{
tableNameCn:'三级指标', //党建质量的三级指标得分
tableName:'thirdLevel',
schema:{
tlId: { //自增的三级指标id
type:Sequelize.INTEGER(20), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键
autoIncrement:true, //允许自增
unique:true //表示该列的值必须唯一
},
bId: {type:Sequelize.INTEGER, allowNull:false}, //支部表id 外键
pqId: {type:Sequelize.INTEGER, allowNull:false}, //党建质量id 外键
thirdLevelContent: {type:Sequelize.STRING(500), allowNull:false, defaultValue:''}, //三级指标内容
thirdLevelScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //三级指标分值
currentScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //当前得分
completionProgress: {type:Sequelize.INTEGER, allowNull:false}, //完成进度
weight: {type:Sequelize.INTEGER, allowNull:false}, //权重
dataYear: {type:Sequelize.INTEGER, allowNull:false}, //数据年份
},
association: []
},
association: [
{type: "hasMany", check: "branch", foreignKey:"bId"},
{type: "hasMany", check: "partyquality", foreignKey:"pqId"},
]
}
];
\ 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