From 0fe70c851b4d96a2b68b3915284934d4fdc2a1e1 Mon Sep 17 00:00:00 2001 From: GuoQing Zhang Date: Tue, 2 Jul 2024 19:46:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E8=BF=87=E5=A4=9A=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=B6=85=E9=95=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/bisheng/database/models/audit_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/bisheng/database/models/audit_log.py b/src/backend/bisheng/database/models/audit_log.py index 7cfbda92c..822072a07 100644 --- a/src/backend/bisheng/database/models/audit_log.py +++ b/src/backend/bisheng/database/models/audit_log.py @@ -63,7 +63,7 @@ class AuditLogBase(SQLModelSerializable): event_type: Optional[str] = Field(index=True, description="操作行为") object_type: Optional[str] = Field(index=True, description="操作对象类型") object_id: Optional[int] = Field(index=True, description="操作对象ID") - object_name: Optional[str] = Field(description="操作对象名称") + object_name: Optional[str] = Field(sa_column=Column(Text), description="操作对象名称") note: Optional[str] = Field(sa_column=Column(Text), description="操作备注") ip_address: Optional[str] = Field(index=True, description="操作时客户端的IP地址") create_time: Optional[datetime] = Field(sa_column=Column(