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
f89391f7
Commit
f89391f7
authored
Sep 21, 2023
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6f48228e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+25
-5
No files found.
src/config/mysqlTableConfig.ts
View file @
f89391f7
...
...
@@ -267,8 +267,8 @@ export const TablesConfig = [
association
:
[]
},
{
tableNameCn
:
'党建质量'
,
tableName
:
'party
Q
uality'
,
tableNameCn
:
'党建质量'
,
//党建质量
tableName
:
'party
q
uality'
,
schema
:{
pqId
:
{
//自增的党建质量id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
...
...
@@ -280,13 +280,32 @@ export const TablesConfig = [
bId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//支部表id 外键
primaryIndicators
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//一级指标 枚举
secondaryIndicators
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//二级指标 枚举
thirdLevelScore
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//三级指标分值
},
association
:
[]
},
{
tableNameCn
:
'三级指标'
,
//党建质量的三级指标得分
tableName
:
'thirdLevel'
,
schema
:{
tlId
:
{
//自增的三级指标id
type
:
Sequelize
.
INTEGER
(
20
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
},
bId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//支部表id 外键
pqId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//党建质量id 外键
thirdLevelContent
:
{
type
:
Sequelize
.
STRING
(
500
),
allowNull
:
false
,
defaultValue
:
''
},
//三级指标内容
thirdLevelScore
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//三级指标分值
currentScore
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//当前得分
completionProgress
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//完成进度
weight
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//权重
dataYear
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//数据年份
},
association
:
[]
},
association
:
[
{
type
:
"hasMany"
,
check
:
"branch"
,
foreignKey
:
"bId"
},
{
type
:
"hasMany"
,
check
:
"partyquality"
,
foreignKey
:
"pqId"
},
]
}
];
\ 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