Commit 1db08fdc by chenjinjing

no message

parent 3ea8aca8
...@@ -92,9 +92,7 @@ export const TablesConfig = [ ...@@ -92,9 +92,7 @@ export const TablesConfig = [
fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型 fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型
uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间 uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
{ {
tableNameCn:'组织生活表', tableNameCn:'组织生活表',
...@@ -115,9 +113,7 @@ export const TablesConfig = [ ...@@ -115,9 +113,7 @@ export const TablesConfig = [
fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型 fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型
uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间 uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
{ {
tableNameCn:'专题活动表', //党建资讯 tableNameCn:'专题活动表', //党建资讯
...@@ -137,9 +133,7 @@ export const TablesConfig = [ ...@@ -137,9 +133,7 @@ export const TablesConfig = [
fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型 fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型
uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间 uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
{ {
tableNameCn:'党建动态表', tableNameCn:'党建动态表',
...@@ -159,9 +153,7 @@ export const TablesConfig = [ ...@@ -159,9 +153,7 @@ export const TablesConfig = [
fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型 fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型
uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间 uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
{ {
tableNameCn:'党费管理表', tableNameCn:'党费管理表',
...@@ -183,7 +175,6 @@ export const TablesConfig = [ ...@@ -183,7 +175,6 @@ export const TablesConfig = [
}, },
association: [ association: [
{type: "hasMany", check: "partyMember"}, {type: "hasMany", check: "partyMember"},
{type: "hasMany", check: "branch"}
] ]
}, },
{ {
...@@ -198,16 +189,14 @@ export const TablesConfig = [ ...@@ -198,16 +189,14 @@ export const TablesConfig = [
unique:true //表示该列的值必须唯一 unique:true //表示该列的值必须唯一
}, },
honorName: {type:Sequelize.STRING(100), allowNull:false}, //荣誉名称 honorName: {type:Sequelize.STRING(100), allowNull:false}, //荣誉名称
honorType: {type:Sequelize.INTEGER, allowNull:false}, //荣誉类型 honorType: {type:Sequelize.INTEGER, allowNull:false}, //荣誉类型 枚举
grantingRange: {type:Sequelize.STRING(100), allowNull:false}, //授予范围 grantingRange: {type:Sequelize.INTEGER, allowNull:false}, //授予范围 枚举
grantingUnit: {type:Sequelize.STRING(100), allowNull:false}, //授予单位/个人 grantingUnit: {type:Sequelize.STRING(100), allowNull:false}, //授予单位/个人
grantTime: {type:Sequelize.DATE, allowNull:false},//授予时间 grantTime: {type:Sequelize.DATE, allowNull:false},//授予时间
bId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:'[]'}, //支部表id 外键 [1,2] --多选 bId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:'[]'}, //支部表id 外键 [1,2] --多选
isUse: {type:Sequelize.BOOLEAN, allowNull:false, defaultValue:true}, //是否使用 isUse: {type:Sequelize.BOOLEAN, allowNull:false, defaultValue:true}, //是否使用
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
{ {
tableNameCn:'党员学习表', tableNameCn:'党员学习表',
...@@ -272,9 +261,7 @@ export const TablesConfig = [ ...@@ -272,9 +261,7 @@ export const TablesConfig = [
fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型 fileType: {type:Sequelize.INTEGER, allowNull:false}, //文件类型
uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间 uploadTime: {type:Sequelize.DATE, allowNull:false, defaultValue:Sequelize.NOW}, //上传时间
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
{ {
tableNameCn:'党建质量', tableNameCn:'党建质量',
...@@ -287,7 +274,7 @@ export const TablesConfig = [ ...@@ -287,7 +274,7 @@ export const TablesConfig = [
autoIncrement:true, //允许自增 autoIncrement:true, //允许自增
unique:true //表示该列的值必须唯一 unique:true //表示该列的值必须唯一
}, },
bId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:''}, //支部表id 外键 [1,2] --多选 bId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:'[]'}, //支部表id 外键 [1,2] --多选
primaryIndicators: {type:Sequelize.INTEGER, allowNull:false}, //一级指标 枚举 primaryIndicators: {type:Sequelize.INTEGER, allowNull:false}, //一级指标 枚举
secondaryIndicators: {type:Sequelize.INTEGER, allowNull:false}, //二级指标 枚举 secondaryIndicators: {type:Sequelize.INTEGER, allowNull:false}, //二级指标 枚举
thirdLevelScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //三级指标分值 thirdLevelScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //三级指标分值
...@@ -296,8 +283,6 @@ export const TablesConfig = [ ...@@ -296,8 +283,6 @@ export const TablesConfig = [
currentScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //当前得分 currentScore: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //当前得分
completionProgress: {type:Sequelize.STRING(100), allowNull:false} //完成进度 completionProgress: {type:Sequelize.STRING(100), allowNull:false} //完成进度
}, },
association: [ association: []
{type: "hasMany", check: "branch"}
]
}, },
]; ];
\ 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