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
0e5b9a15
Commit
0e5b9a15
authored
Aug 25, 2023
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
bf3d4730
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+4
-4
No files found.
src/config/mysqlTableConfig.ts
View file @
0e5b9a15
...
@@ -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] --多选
...
...
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