Commit 0e5b9a15 by chenjinjing

no message

parent bf3d4730
...@@ -5,7 +5,7 @@ export const TablesConfig = { ...@@ -5,7 +5,7 @@ export const TablesConfig = {
"支部表":{ "支部表":{
tableName:'branch', tableName:'branch',
schema:{ schema:{
bId: { //支部id bId: {
type:Sequelize.INTEGER(20), //表示属性的数据类型 type:Sequelize.INTEGER(20), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空 allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键 primaryKey:true, //表示主键
...@@ -18,7 +18,7 @@ export const TablesConfig = { ...@@ -18,7 +18,7 @@ export const TablesConfig = {
"后台用户表":{ "后台用户表":{
tableName:'adminUser', tableName:'adminUser',
schema:{ schema:{
uId:{ //用户id uId:{
type:Sequelize.STRING(100), //表示属性的数据类型 type:Sequelize.STRING(100), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空 allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键 primaryKey:true, //表示主键
...@@ -34,7 +34,7 @@ export const TablesConfig = { ...@@ -34,7 +34,7 @@ export const TablesConfig = {
"党员基础信息表":{ "党员基础信息表":{
tableName:'partyMember', tableName:'partyMember',
schema:{ schema:{
pmId: { //自增的id pmId: {
type:Sequelize.STRING(100), //表示属性的数据类型 type:Sequelize.STRING(100), //表示属性的数据类型
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空 allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
primaryKey:true, //表示主键 primaryKey:true, //表示主键
...@@ -46,7 +46,7 @@ export const TablesConfig = { ...@@ -46,7 +46,7 @@ export const TablesConfig = {
birthDate: {type:Sequelize.DATE, allowNull:false}, //出生年月 birthDate: {type:Sequelize.DATE, allowNull:false}, //出生年月
phone: {type:Sequelize.STRING(11), allowNull:false}, //手机号码 phone: {type:Sequelize.STRING(11), allowNull:false}, //手机号码
levelOfEducation: {type:Sequelize.INTEGER, allowNull:false}, //文化程度 levelOfEducation: {type:Sequelize.INTEGER, allowNull:false}, //文化程度
bId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:'[]'}, //支部表id 外键 [1,2] --多选 bId: {type:Sequelize.INTEGER(20), allowNull:false}, //支部表id 外键
partyJoiningTime: {type:Sequelize.DATE, allowNull:false}, //入党时间 --正式党员录入 partyJoiningTime: {type:Sequelize.DATE, allowNull:false}, //入党时间 --正式党员录入
apId: {type:Sequelize.INTEGER, allowNull:false, defaultValue:1}, //行政职务表id 外键 默认1:普通职员 apId: {type:Sequelize.INTEGER, allowNull:false, defaultValue:1}, //行政职务表id 外键 默认1:普通职员
ppId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:'[]'}, //党内职务表id 外键 --正式党员录入 [1,2] --多选 ppId: {type:Sequelize.STRING(100), allowNull:false, defaultValue:'[]'}, //党内职务表id 外键 --正式党员录入 [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