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
bf3d4730
Commit
bf3d4730
authored
Aug 25, 2023
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
dff3a35e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+3
-5
No files found.
src/config/mysqlTableConfig.ts
View file @
bf3d4730
...
@@ -19,10 +19,9 @@ export const TablesConfig = {
...
@@ -19,10 +19,9 @@ export const TablesConfig = {
tableName
:
'adminUser'
,
tableName
:
'adminUser'
,
schema
:{
schema
:{
uId
:{
//用户id
uId
:{
//用户id
type
:
Sequelize
.
INTEGER
(
2
0
),
//表示属性的数据类型
type
:
Sequelize
.
STRING
(
10
0
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
unique
:
true
//表示该列的值必须唯一
},
},
loginId
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//登录账号
loginId
:{
type
:
Sequelize
.
STRING
(
100
),
allowNull
:
false
},
//登录账号
...
@@ -36,10 +35,9 @@ export const TablesConfig = {
...
@@ -36,10 +35,9 @@ export const TablesConfig = {
tableName
:
'partyMember'
,
tableName
:
'partyMember'
,
schema
:{
schema
:{
pmId
:
{
//自增的id
pmId
:
{
//自增的id
type
:
Sequelize
.
INTEGER
(
2
0
),
//表示属性的数据类型
type
:
Sequelize
.
STRING
(
10
0
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
primaryKey
:
true
,
//表示主键
autoIncrement
:
true
,
//允许自增
unique
:
true
//表示该列的值必须唯一
unique
:
true
//表示该列的值必须唯一
},
},
etId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
},
//名册录入类型 1:正式党员、2:入党积极分子、3:预备党员'
etId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
},
//名册录入类型 1:正式党员、2:入党积极分子、3:预备党员'
...
@@ -248,7 +246,7 @@ export const TablesConfig = {
...
@@ -248,7 +246,7 @@ export const TablesConfig = {
autoIncrement
:
true
,
//允许自增
autoIncrement
:
true
,
//允许自增
unique
:
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 外键
mlId
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
},
//党员学习id 外键
rateOfLearning
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//学习进度
rateOfLearning
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
0
},
//学习进度
learningCompleted
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
}
//是否已完成 1:正在进行、2:阅读完成
learningCompleted
:
{
type
:
Sequelize
.
INTEGER
,
allowNull
:
false
,
defaultValue
:
1
}
//是否已完成 1:正在进行、2:阅读完成
...
...
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