继续è°workflowï:调整目录结构

This commit is contained in:
zhengxinonly
2021-06-22 03:18:44 +08:00
parent d7c7237cd4
commit 05dff28523
43 changed files with 203 additions and 556 deletions
+3 -3
View File
@@ -2,8 +2,8 @@ from applications.extensions import db
# 创建中间表
user_role = db.Table(
"admin_user_role", # 中间表名称
"rt_user_role", # 中间表名称
db.Column("id", db.Integer, primary_key=True, autoincrement=True, comment='标识'), # 主键
db.Column("user_id", db.Integer, db.ForeignKey("admin_user.id"), comment='用户编号'), # 属性 外键
db.Column("role_id", db.Integer, db.ForeignKey("admin_role.id"), comment='角色编号'), # 属性 外键
db.Column("user_id", db.Integer, db.ForeignKey("cp_user.id"), comment='用户编号'), # 属性 外键
db.Column("role_id", db.Integer, db.ForeignKey("rt_role.id"), comment='角色编号'), # 属性 外键
)