docs: add cell storage protocol modules design for 2.2.6–2.2.10
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
058811ae77
commit
246ad2228e
153 files changed
+20578
-2040
No files matched your search
@@ -103,6 +103,26 @@ class SysRoleMenu(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysRoleDataScopeDetail(Base):
|
||||
"""角色自定义数据权限明细 sys_role_data_scope_detail"""
|
||||
|
||||
__tablename__ = "sys_role_data_scope_detail"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
role_id = Column(String(64), nullable=False, comment="角色ID")
|
||||
scope_type = Column(String(20), nullable=False, comment="范围类型:dept/user")
|
||||
scope_value = Column(String(100), nullable=False, comment="范围值:部门ID/用户ID")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysMenu(Base):
|
||||
"""菜单表 sys_menu(V0.3)"""
|
||||
|
||||
@@ -129,6 +149,29 @@ class SysMenu(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysDept(Base):
|
||||
"""组织/部门 sys_dept"""
|
||||
|
||||
__tablename__ = "sys_dept"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
parent_id = Column(String(64), nullable=False, default="0", comment="父组织id")
|
||||
dept_name = Column(String(200), nullable=False, comment="组织名称")
|
||||
dept_category_code = Column(String(64), nullable=True, comment="组织类别编码")
|
||||
status = Column(CHAR(1), nullable=False, default="1", comment="部门状态")
|
||||
leader = Column(String(100), nullable=True, comment="部门负责人")
|
||||
leader_phone = Column(String(32), nullable=True, comment="部门负责人联系电话")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysTenant(Base):
|
||||
"""租户表 sys_tenant(V0.3 2.1.1)"""
|
||||
|
||||
@@ -149,6 +192,152 @@ class SysTenant(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class SysSite(Base):
|
||||
"""站点 sys_site"""
|
||||
|
||||
__tablename__ = "sys_site"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
site_name = Column(String(200), nullable=False, comment="站点名称")
|
||||
site_code = Column(String(64), nullable=False, comment="站点编码")
|
||||
site_type = Column(String(64), nullable=True, comment="站点类型")
|
||||
status = Column(CHAR(1), nullable=False, default="1", comment="状态")
|
||||
address = Column(String(512), nullable=True, comment="详细地址")
|
||||
contact_name = Column(String(100), nullable=True, comment="联系人")
|
||||
contact_phone = Column(String(32), nullable=True, comment="联系电话")
|
||||
business_scope = Column(String(256), nullable=True, comment="业务范围")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysPost(Base):
|
||||
"""职位 sys_post"""
|
||||
|
||||
__tablename__ = "sys_post"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
post_name = Column(String(100), nullable=False, comment="职位名称")
|
||||
post_code = Column(String(64), nullable=False, comment="职位编码")
|
||||
status = Column(CHAR(1), nullable=False, default="1", comment="状态")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysUserPost(Base):
|
||||
"""用户-职位关联 sys_user_post"""
|
||||
|
||||
__tablename__ = "sys_user_post"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
user_id = Column(String(64), nullable=False, comment="用户ID")
|
||||
post_id = Column(String(64), nullable=False, comment="职位ID")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class BizItemUnit(Base):
|
||||
"""物品单位 biz_item_unit"""
|
||||
|
||||
__tablename__ = "biz_item_unit"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
unit_code = Column(String(64), nullable=False, comment="单位编码")
|
||||
unit_name = Column(String(100), nullable=False, comment="单位名称")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class BizExpressCompany(Base):
|
||||
"""快递公司 biz_express_company"""
|
||||
|
||||
__tablename__ = "biz_express_company"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
express_code = Column(String(64), nullable=False, comment="快递公司编码")
|
||||
express_name = Column(String(200), nullable=False, comment="快递公司名称")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# 字典管理(sys_dict_type / sys_dict_data)
|
||||
# =============================================================================
|
||||
|
||||
|
||||
class SysDictType(Base):
|
||||
"""字典类型 sys_dict_type"""
|
||||
|
||||
__tablename__ = "sys_dict_type"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
dict_name = Column(String(100), nullable=False, default="", comment="字典名称")
|
||||
dict_type = Column(String(100), nullable=False, default="", comment="字典类型编码")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class SysDictData(Base):
|
||||
"""字典数据 sys_dict_data"""
|
||||
|
||||
__tablename__ = "sys_dict_data"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
dict_label = Column(String(100), nullable=False, default="", comment="字典标签")
|
||||
dict_value = Column(String(100), nullable=False, default="", comment="字典键值")
|
||||
dict_type = Column(String(100), nullable=False, default="", comment="字典类型")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# 可选:API 请求日志(不在 V0.3 DDL 内;无表时中间件写入会失败并记录 warning)
|
||||
# =============================================================================
|
||||
|
||||
Reference in new issue
Block a user