From 6eb9b772e74c0b787e0632f303ead032e2752916 Mon Sep 17 00:00:00 2001 From: wxy Date: Fri, 13 Mar 2026 17:28:27 +0800 Subject: [PATCH] feat(app): add is_active to app_shares with migration --- api/app/models/appshare_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/models/appshare_model.py b/api/app/models/appshare_model.py index 6902051a..4e9312d6 100644 --- a/api/app/models/appshare_model.py +++ b/api/app/models/appshare_model.py @@ -19,7 +19,7 @@ class AppShare(Base): target_workspace_id = Column(UUID(as_uuid=True), ForeignKey('workspaces.id'), nullable=False, comment="目标工作空间ID") shared_by = Column(UUID(as_uuid=True), ForeignKey('users.id'), nullable=False, comment="分享者用户ID") permission = Column(String, default="readonly", nullable=False, comment="权限模式: readonly | editable") - is_active = Column(Boolean, default=True, nullable=False, comment="是否有效,False 表示逻辑删除") + is_active = Column(Boolean, default=True, server_default='true', nullable=False, comment="是否有效,False 表示逻辑删除") created_at = Column(DateTime, default=datetime.datetime.now) updated_at = Column(DateTime, default=datetime.datetime.now)