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
1db08fdc
Commit
1db08fdc
authored
Aug 30, 2023
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3ea8aca8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
25 deletions
+11
-25
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+11
-25
No files found.
src/config/mysqlTableConfig.ts
View file @
1db08fdc
...
@@ -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
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