From 96175f670be06443dac8f85857bb073f6f586ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A6=82=E5=A8=81?= Date: Mon, 22 Sep 2025 18:01:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BB=BA=E7=AB=8B=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/models/db/work.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/app/models/db/work.py b/backend/app/models/db/work.py index d36d02d..0128aaa 100644 --- a/backend/app/models/db/work.py +++ b/backend/app/models/db/work.py @@ -48,3 +48,12 @@ class WorkContent(BaseModel): class Meta: 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")