Django数据库uml关系图
2024-09-14 17:29:37 0 举报
在Django数据库UML关系图
作者其他创作
大纲/内容
auth_user_user_permissions用户的权限信息
id:主键,自增,长整型,不允许为空。user_id:外键,关联到 auth_user 表的 id 字段。permission_id:外键,关联到 auth_permission 表的 id 字段
N:1 permission_id
auth_group_permissions用户组的权限信息
id:主键,自增,长整型,不允许为空。group_id:外键,关联到auth_group 表的 id 字段。permission_id:外键,关联到 auth_permission 表的 id 字段
django_migrations数据库迁移历史
id:主键,自增,长整型,不允许为空。app:应用的名称。name:迁移的名称。applied:迁移应用的时间。
1:ncontent_type_id
auth_group用户组的信息
id:主键,自增,整型,不允许为空。name:用户组的名称,字符串类型,不允许为空。
n:1user_id
django_session会话
session_key:会话的键,主键,字符串类型,不允许为空。session_data:会话的数据。expire_date:会话的过期时间。
1:npermission_id
1:nuser_id
auth_user_groups用户组信息
id:主键,自增,长整型,不允许为空。user_id:外键,关联到 auth_user 表的 id 字段。group_id:外键,关联到 auth_group 表的 id 字段。
n:1group_id
n:1
django_content_type模型的内容类型
id:主键,自增,整型,不允许为空。app_label:应用的标签。model:模型的名称。
auth_permission存储权限的信息
id:主键,自增,整型,不允许为空。name:权限的名称,字符串类型,不允许为空。content_type_id:外键,关联到 django_content_type 表的 id 字段。codename:权限的代码名称,字符串类型,不允许为空。
基于Django5
1:ngroup_id
django_admin_log后台管理日志
id:主键,自增,整型,不允许为空。action_time:操作的时间。object_id:被操作对象的ID。object_repr:被操作对象的表示。action_flag:操作的类型。change_message:变更信息。content_type_id:外键,关联到 django_content_type 表的 id 字段。user_id:外键,关联到 auth_user 表的 id 字段
auth_user用户的信息
id:主键,自增,整型,不允许为空。password:用户的密码,字符串类型,不允许为空。last_login:用户最后一次登录的时间。is_superuser:用户是否是超级用户,布尔类型。username:用户的用户名,字符串类型,不允许为空。first_name:用户的名。last_name:用户的姓email:用户的电子邮件地址。is_staff:用户是否有管理后台的权限,布尔类型。is_active:用户账户是否激活,布尔类型。date_joined:用户注册的时间
0 条评论
回复 删除
下一页