Commit bec60d76 by chenjinjing

no message

parent 22e724f9
...@@ -245,6 +245,62 @@ export const TablesConfig = [ ...@@ -245,6 +245,62 @@ export const TablesConfig = [
association: [] association: []
}, },
{ {
tableNameCn:'园区通知表',
tableName:'garden_notice',
schema:{
gnId: {
type:Sequelize.STRING(20), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键
unique:true //表示该列的值必须唯一
},
title: {type:Sequelize.STRING(255), allowNull:false}, //标题
content: {type:Sequelize.STRING(255)}, //内容
isPublished: {type:Sequelize.BOOLEAN}, //是否发布(1:是,0:否)
publishTime: {type:Sequelize.DATE}, //发布时间
relatedEnterprise: {type:Sequelize.STRING(255)}, //关联企业
},
association: []
},
{
tableNameCn:'园区活动表',
tableName:'garden_activity',
schema:{
gaId: {
type:Sequelize.STRING(20), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键
unique:true //表示该列的值必须唯一
},
activityTitle: {type:Sequelize.STRING(255), allowNull:false}, //标题
activityContent: {type:Sequelize.STRING(255)}, //内容
activityTime: {type:Sequelize.DATE}, //发布时间
activityAddress: {type:Sequelize.STRING(255)}, //关联企业
isPublished: {type:Sequelize.BOOLEAN}, //是否发布(1:是,0:否)
},
association: []
},
{
tableNameCn:'企业服务表',
tableName:'enterprise_service',
schema:{
esId: {
type:Sequelize.STRING(20), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键
unique:true //表示该列的值必须唯一
},
eId: {type:Sequelize.STRING(20), allowNull:false}, //关联企业id
requestingEnterprise: {type:Sequelize.STRING(255), allowNull:false}, //申请企业
needCategory: {type:Sequelize.INTEGER}, //需求类别
needContent: {type:Sequelize.STRING(255)}, //需求内容
applyTime: {type:Sequelize.DATE}, //申请时间
followUpStatus: {type:Sequelize.INTEGER}, //跟进状态
resolveTime: {type:Sequelize.DATE}, //解决时间
},
association: []
},
{
tableNameCn:'企业基础信息表', tableNameCn:'企业基础信息表',
tableName:'enterprise', tableName:'enterprise',
schema:{ schema:{
...@@ -296,7 +352,8 @@ export const TablesConfig = [ ...@@ -296,7 +352,8 @@ export const TablesConfig = [
{type: "hasMany", check: "enterprise_team", foreignKey:"eId"}, {type: "hasMany", check: "enterprise_team", foreignKey:"eId"},
{type: "hasMany", check: "enterprise_ipr", foreignKey:"eId"}, {type: "hasMany", check: "enterprise_ipr", foreignKey:"eId"},
{type: "hasMany", check: "enterprise_legal_person", foreignKey:"eId"}, {type: "hasMany", check: "enterprise_legal_person", foreignKey:"eId"},
{type: "hasMany", check: "enterprise_patent", foreignKey:"eId"} {type: "hasMany", check: "enterprise_patent", foreignKey:"eId"},
{type: "hasMany", check: "enterprise_service", foreignKey:"eId"}
] ]
}, },
......
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