From 35be03803f8ba8be991638c815cb0c572765b81f Mon Sep 17 00:00:00 2001 From: wxy Date: Thu, 26 Mar 2026 18:56:43 +0800 Subject: [PATCH] feat: add tenant relationship and status fields to User model --- api/app/models/tenant_model.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/app/models/tenant_model.py b/api/app/models/tenant_model.py index 8f101eb5..a92b5629 100644 --- a/api/app/models/tenant_model.py +++ b/api/app/models/tenant_model.py @@ -35,10 +35,6 @@ class Tenants(Base): api_ops_rate_limit = Column(String(100), nullable=True) # API 调用频率限制 status = Column(String(50), nullable=True, default='active') # 租户状态 - # 租户功能开关字段 - feature_billing = Column(Boolean, default=False, nullable=False, server_default='false', comment="是否启用收费管理菜单") - feature_user_management = Column(Boolean, default=False, nullable=False, server_default='false', comment="是否启用用户管理菜单") - # Relationship to users - one tenant has many users users = relationship("User", back_populates="tenant")