Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yafangsuo_dataServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
yafangsuo_dataServer
Commits
09a0143b
Commit
09a0143b
authored
Aug 24, 2023
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库表字段
parent
3fdb0330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
293 additions
and
1 deletions
+293
-1
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+293
-1
No files found.
src/config/mysqlTableConfig.ts
View file @
09a0143b
...
@@ -12,7 +12,298 @@ export const TablesConfig = {
...
@@ -12,7 +12,298 @@ export const TablesConfig = {
autoIncrement
:
true
,
//允许自增
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
unique
:
true
//表示该列的值必须唯一
},
},
branchName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//支部名称
branchName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//支部名称
}
},
"后台用户表"
:{
tableName
:
'adminUser'
,
schema
:{
uId
:{
//用户id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
loginId
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//登录账号
pwd
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//密码
token
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
tokenMs
:{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
firstLoginIsChangePwd
:{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
false
},
//首次登录是否修改密码
}
},
"党员基础信息表"
:{
tableName
:
'partyMember'
,
schema
:{
pmId
:
{
//自增的id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
etId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
},
//名册录入类型 1:正式党员、2:入党积极分子、3:预备党员'
name
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//姓名
sex
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
},
//性别 1:男、2:女
birthDate
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//出生年月
phone
:
{
type
:
Sequelize
.
STRING
(
11
),
allowNull
:
false
},
//手机号码
levelOfEducation
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文化程度
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
partyJoiningTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//入党时间 --正式党员录入
apId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
},
//行政职务表id 外键 默认1:普通职员
ppId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//党内职务表id 外键 --正式党员录入 [1,2] --多选
dId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//所属科室表id 外键 [1,2] --多选
askForTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//申请入党时间 --入党积极分子录入、入党申请录入
listedAsActivistsTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//列为积极分子时间 --入党积极分子录入
liaison
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//联系人 --入党积极分子录入 ["",""] --多选
talkTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//谈话时间 --入党申请录入
partyState
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
},
//党员状态 1:在党、2:退党
isAdmin
:
{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
false
},
//是否为管理员
/**小程序登录 */
loginId
:
{
type
:
Sequelize
.
STRING
(
11
),
allowNull
:
false
},
//登录账号 默认手机号
pwd
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//密码 默认手机号后6位
token
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
tokenMs
:{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
firstLoginIsChangePwd
:{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
false
},
//首次登录是否修改密码
}
},
"行政职务表"
:{
tableName
:
'administrativePosition'
,
schema
:{
apId
:{
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
administrativePositionName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
}
}
},
"党内职务表"
:{
tableName
:
'partyPositions'
,
schema
:{
ppId
:
{
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
partyPositionsName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
}
}
},
"所属科室表"
:{
tableName
:
'department'
,
schema
:{
dId
:
{
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
departmentName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
}
}
},
"支部制度表"
:{
tableName
:
'branchSystem'
,
schema
:{
bsId
:
{
//自增的支部制度id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
systemTitle
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//制度标题
periodOfValidity
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//制度有效范围
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
releaseTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//发布时间
isUse
:
{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
true
},
//是否使用
fileName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文件类型
uploadTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
,
defaultValue
:
Sequelize
.
NOW
},
//上传时间
}
},
"组织生活表"
:{
tableName
:
'organizationalLife'
,
schema
:{
oId
:
{
//自增的组织生活id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
theme
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//主题
themeType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//主题类型
dataMonth
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//数据月份
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
fileName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文件类型
uploadTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
,
defaultValue
:
Sequelize
.
NOW
},
//上传时间
}
},
"专题活动表"
:{
tableName
:
'thematicActivities'
,
schema
:{
taId
:
{
//自增的专题活动id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
theme
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//主题
dataMonth
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//数据月份
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
fileName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文件类型
uploadTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
,
defaultValue
:
Sequelize
.
NOW
},
//上传时间
}
},
"党建动态表"
:{
tableName
:
'partyBuildingDynamic'
,
schema
:{
pbId
:
{
//自增的党建动态id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
theme
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//活动名称
dataMonth
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//数据月份
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
fileName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文件类型
uploadTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
,
defaultValue
:
Sequelize
.
NOW
},
//上传时间
}
},
"党费管理表"
:{
tableName
:
'partyExpenses'
,
schema
:{
peId
:
{
//自增的党费id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
pmId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//党员信息表id 外键
payType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
2
},
//缴纳状态 1:已缴纳、2:未缴纳
payableMonth
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//应交月份
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
payTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
true
},
//缴费时间
payAmount
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//缴费金额(元)
}
},
"党建先锋表"
:{
tableName
:
'partyVanguard'
,
schema
:{
pvId
:
{
//自增的党建先锋id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
honorName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//荣誉名称
honorType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//荣誉类型
grantingRange
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//授予范围
grantingUnit
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//授予单位/个人
grantTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//授予时间
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
isUse
:
{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
true
},
//是否使用
}
},
"党员学习表"
:{
tableName
:
'memberLearning'
,
schema
:{
mlId
:
{
//自增的党员学习id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
contentTitle
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//内容标题
ctId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//课程类型表id 外键
courseEntryType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//课程录入类型 1:视频课程、2:文字课程
hits
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//点击量
isUse
:
{
type
:
Sequelize
.
BOOLEAN
,
allowNull
:
false
,
defaultValue
:
true
},
//是否使用
fileName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文件类型
uploadTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
,
defaultValue
:
Sequelize
.
NOW
},
//上传时间
}
},
"学习进度表"
:{
tableName
:
'rateLearning'
,
schema
:{
rlId
:
{
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
pmId
:
{
type
:
Sequelize
.
INTEGER
,
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:阅读完成
}
},
"课程类型"
:{
tableName
:
'courseType'
,
schema
:{
ctId
:
{
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
courseTypeName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
}
}
},
"学习强国"
:{
tableName
:
'learningPower'
,
schema
:{
lpId
:
{
//自增的党员学习id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
partyMemberName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//党员姓名
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//支部表id 外键 [1,2] --多选
monthIntegral
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//本月积分
totalIntegral
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//总积分
fileName
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
'[]'
},
//文件名称 ["",""] --多选
fileType
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//文件类型
uploadTime
:
{
type
:
Sequelize
.
DATE
,
allowNull
:
false
,
defaultValue
:
Sequelize
.
NOW
},
//上传时间
}
},
"党建质量"
:{
tableName
:
'partyQuality'
,
schema
:{
pqId
:
{
//自增的党建质量id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
bId
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
''
},
//支部表id 外键 [1,2] --多选
primaryIndicators
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//一级指标
secondaryIndicators
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//二级指标
thirdLevelScore
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//三级指标分值
thirdLevelContent
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
,
defaultValue
:
''
},
//三级指标内容
totalScore
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//总分
currentScore
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//当前得分
completionProgress
:
{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
}
//完成进度
}
}
},
},
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment