Commit bf3d4730 by chenjinjing

no message

parent dff3a35e
......@@ -19,10 +19,9 @@ export const TablesConfig = {
tableName:'adminUser',
schema:{
uId:{ //用户id
type:Sequelize.INTEGER(20), //表示属性的数据类型
type:Sequelize.STRING(100), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键
autoIncrement:true, //允许自增
unique:true //表示该列的值必须唯一
},
loginId:{type:Sequelize.STRING(100), allowNull:false}, //登录账号
......@@ -36,10 +35,9 @@ export const TablesConfig = {
tableName:'partyMember',
schema:{
pmId: { //自增的id
type:Sequelize.INTEGER(20), //表示属性的数据类型
type:Sequelize.STRING(100), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键
autoIncrement:true, //允许自增
unique:true //表示该列的值必须唯一
},
etId: {type:Sequelize.INTEGER, allowNull:false, defaultValue:1}, //名册录入类型 1:正式党员、2:入党积极分子、3:预备党员'
......@@ -248,7 +246,7 @@ export const TablesConfig = {
autoIncrement:true, //允许自增
unique:true //表示该列的值必须唯一
},
pmId: {type:Sequelize.INTEGER, allowNull:false}, //党员id 外键
pmId: {type:Sequelize.STRING(100), allowNull:false}, //党员id 外键
mlId: {type:Sequelize.INTEGER, allowNull:false}, //党员学习id 外键
rateOfLearning: {type:Sequelize.INTEGER, allowNull:false, defaultValue:0}, //学习进度
learningCompleted: {type:Sequelize.INTEGER, allowNull:false, defaultValue:1}//是否已完成 1:正在进行、2:阅读完成
......
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