feat: 建立关系表
This commit is contained in:
parent
fcb84098a4
commit
96175f670b
|
|
@ -48,3 +48,12 @@ class WorkContent(BaseModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
table = "tb_work_content"
|
table = "tb_work_content"
|
||||||
|
|
||||||
|
|
||||||
|
class TaskUserRelation(BaseModel):
|
||||||
|
work_id = fields.IntField()
|
||||||
|
user_id = fields.IntField()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
table = "tb_work_user_relation"
|
||||||
|
unique_together = ("work_id", "user_id")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue