Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
puxin_answer
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
puxin_answer
Commits
402d06eb
Commit
402d06eb
authored
Jan 07, 2025
by
zhangzhencai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了mysqlTableConfig.ts文件
parent
39126a2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
26 deletions
+4
-26
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+4
-26
No files found.
src/config/mysqlTableConfig.ts
View file @
402d06eb
...
...
@@ -24,16 +24,7 @@ export const TablesConfig = [
is_del
:
{
type
:
Sequelize
.
TIMESTAMP
(
1
)},
//是否删除 0.正常 1.已删除
},
association
:
[
{
type
:
"belongsTo"
,
check
:
"option"
,
foreignKey
:
"uid"
},
{
type
:
"hasMany"
,
check
:
"question_like"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_collect"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_comment"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_report"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_answer"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_answer_like"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_answer_collect"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_answer_comment"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"question_answer_report"
,
foreignKey
:
"qid"
}
{
type
:
"hasMany"
,
check
:
"option"
,
foreignKey
:
"qid"
}
]
},
{
...
...
@@ -56,16 +47,7 @@ export const TablesConfig = [
is_del
:
{
type
:
Sequelize
.
tinyint
(
1
)},
//是否删除 0.正常 1.已删除
},
association
:
[
{
type
:
"belongsTo"
,
check
:
"question"
,
foreignKey
:
"qid"
},
{
type
:
"hasMany"
,
check
:
"option_like"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_collect"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_comment"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_report"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_answer"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_answer_like"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_answer_collect"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_answer_comment"
,
foreignKey
:
"oid"
},
{
type
:
"hasMany"
,
check
:
"option_answer_report"
,
foreignKey
:
"oid"
}
{
type
:
"hasMany"
,
check
:
"question"
,
foreignKey
:
"qid"
}
]
},
{
...
...
@@ -115,9 +97,7 @@ export const TablesConfig = [
second_highest_letter
:
{
type
:
Sequelize
.
tinyint
},
//第二高分字母
third_highest_letter
:
{
type
:
Sequelize
.
tinyint
},
//第三高分字母
},
association
:
[
// {type: "hasMany", check: "test_answer", foreignKey:"infoid"}
]
association
:
[]
},
{
tableNameCn
:
'信息记录表'
,
...
...
@@ -138,9 +118,7 @@ export const TablesConfig = [
create_time
:
{
type
:
Sequelize
.
TIMESTAMP
(
0
),
allowNull
:
false
},
//创建时间
is_del
:
{
type
:
Sequelize
.
tinyint
(
1
),
allowNull
:
false
},
//是否删除 0.正常 1.已删除
},
association
:
[
// {type: "belongsTo", check: "testinfo", foreignKey:"infoid"}
]
association
:
[]
}
...
...
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