🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 数据字典 注意:数据库表名前缀是在安装时填写的前缀。以实际表名为准。 - hkcms_category (栏目表) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id| 栏目ID | int| 10 | √ | √ | × | NULL | | 2 | model_id | 模型ID | int | 10 | × | × | × | 0 | | 3 | parent_id | 栏目父ID | int | 10 | × | × | × | 0 | | 4 | type | 类型 link-外部链接 list-列表 category-栏目分类 | enum | enum('link','list','category') | × | × | × | link | | 5 | app | 所属应用(模块) | varchar | 15 | × | × | × | cms | | 6 | name | 栏目名称 | varchar | 50 | × | × | × | | | 7 | title | 栏目标题 | varchar | 50 | × | × | × | | | 8 | url | 指定url | varchar | 250 | × | × | × | '' | | 9 | image| 栏目图片 | varchar | 250 | × | × | × | | | 10 | category_tpl| 栏目分类模板 | varchar | 100 | × | × | × | | | 11 | list_tpl| 列表模板 | varchar | 100 | × | × | × | | | 12 | show_tpl| 内容模板 | varchar | 100 | × | × | × | | | 13 | seo_title| SEO标题 | varchar | 250 | × | × | × | | | 14 | seo_keywords | SEO关键字 | varchar | 250 | × | × | × | | | 15 | seo_desc | SEO描述 | varchar | 250 | × | × | × | | | 16 | ismenu | 导航显示:1-显示,0-隐藏 | tinyint | 4 | × | × | × | 1 | | 17 | target | 弹出方式 | varchar | 20 | × | × | × | _self | | 18 | weigh | 排序 | tinyint | 11 | × | × | × | 0 | | 19 | delete_time | 删除时间 | int | 10 | × | × | √ | NULL | | 20 | update_time | 更新时间 | int | 10 | × | × | √ | NULL | | 21 | create_time | 创建时间 | int | 10 | × | × | √ | NULL | | 22 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | - hkcms_config (站点配置表) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id| ID | int| 10 | √ | √ | × | NULL | | 2 | group | 分组:basics(基础)mail(邮箱)extend(扩展) | varchar | 30 | × | × | × | | | 3 | name | 键名 | varchar | 50 | × | × | × | | | 4 | title | 名称 | varchar | 100 | × | × | × | | | 5 | value | 值 | text | | × | × | √ | NULL | | 6 | type | 类型 | varchar | 30 | × | × | × | | | 7 | data_list| 数据列表 | text | | × | × | √ | NULL | | 8 | tip | 提示 | varchar | 100 | × | × | × | | | 9 | style | 样式 | text | | × | × | √ | NULL | - hkcms_admin (后台管理员) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL | | 2 | username | 登录名称 | varchar | 20 | × | × | × | NULL | | 3 | nickname | 昵称 | varchar | 50 | × | × | × | | | 4 | email | 邮箱 | varchar | 50 | × | × | × | | | 5 | password | 密码 | varchar | 32 | × | × | × | NULL | | 6 | salt | 密码盐 | varchar | 10 | × | × | × | NULL | | 7 | avatar | 头像 | varchar | 255 | × | × | × | | | 8 | remark | 备注 | varchar | 255 | × | × | × | | | 9 | logintime | 登录时间 | int | 11 | × | × | √ | NULL | | 10 | loginip | 登录IP | varchar | 40| × | × | × | | | 11 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | | 12 | create_time | 创建时间 | int | 11 | × | × | √ | NULL | | 13 | update_time | 更新时间 | int | 11 | × | × | √ | NULL | - hkcms_admin_log(后台操作日志) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL| | 2 | admin_id | 用户id | int | 10 | × | × | × | NULL | | 3 | username | 用户名 | varchar | 30 | × | × | × | | | 4 | useragent | useragent | varchar | 255 | × | × | × | | | 5 | title | 标题 | varchar | 100 | × | × | × | NULL | | 6 | url | URL | varchar | 1500 | × | × | × | NULL | | 7 | ip | IP地址 | varchar | 20 | × | × | × | NULL | | 8 | content | 内容 | text | | × | × | × | NULL | | 9 | create_time | 操作时间 | int | 11 | × | × | × | NULL | - hkcms_admin_panel(管理后台常用菜单) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | auth_rule_id | 菜单ID | int | 11 | × | × | × | 0 | | 2 | admin_id | 用户ID| int | 11 | × | × | × | 0 | - hkcms_attachment(附件) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL| | 2 | user_id | 用户ID | int | 11 | × | × | × | NULL | | 3 | user_type | 用户类型:1-后台管理员 | tinyint | 1 | × | × | × | 1 | | 4 | title | 附件名 | char | 50 | × | × | × | | | 5 | path | 附件路径 | char | 100 | × | × | × | | | 6 | size | 附件大小(字节) | int | 11 | × | × | × | 0 | | 7 | ext | 附件扩展 | char | 10 | × | × | × | | | 8 | mime_type | 附件mimeType | char | 100 | × | × | × | | | 9 | md5 | md5 | char | 32 | × | × | × | | | 9 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | | 9 | update_time | 更新时间 | int | 11 | × | × | √ | | | 9 | create_time | 创建时间 | int | 11 | × | × | √ | | - hkcms_auth_group(角色管理) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | mediumint | 8 | √ | √ | × | NULL| | 2 | name | 名称 | varchar | 20 | × | × | × | | | 3 | parent_id | 父级 | mediumint | 8 | × | × | × | 0 | | 4 | rules | 规则 | text | | × | × | × | NULL | | 5 | remark | 备注 | varchar | 255 | × | × | × | | | 6 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | | 7 | create_time | 创建时间 | int | 11 | × | × | √ | NULL | | 8 | update_time | 更新时间 | int | 11 | × | × | √ | NULL | - hkcms_auth_group_access(权限分组表) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | admin_id | 管理员ID | int | 10 | × | × | × | NULL| | 2 | group_id | 角色组ID | mediumint | 8 | × | × | × | NULL | | 3 | create_time | 创建时间 | int | 8 | × | × | √ | NULL | | 4 | update_time | 更新时间 | int | | × | × | √ | NULL | - hkcms_auth_rule (菜单规则) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL| | 2 | parent_id | 父级 | int | 10 | × | × | × | 0 | | 3 | name | 规则 | char | 80 | × | × | × | | | 4 | title | 标题 | char | 20 | × | × | × | | | 5 | route | 路由 | char | 80 | × | × | × | NULL | | 6 | icon | 图标 | char | 50 | × | × | × | | | 7 | remark | 备注 | char | 250 | × | × | × | | | 8 | weigh | 排序 | int | 11 | × | × | × | 0 | | 9 | type | 类型:0-权限规则,1-菜单,2-菜单头 | tinyint | 2 | × | × | × | 1 | | 10 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | | 11 | is_nav | 快速导航:1-是,0-否 | tinyint | 2 | × | × | × | 0 | | 12 | condition | 附加条件 | char | 100 | × | × | × | | | 13 | create_time | 创建时间 | int | 11 | × | × | √ | NULL | | 14 | update_time | 更新时间 | int | 11 | × | × | √ | NULL | - hkcms_category_priv(栏目权限) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | category_id | 栏目ID | int | 10 | × | × | × | NULL| | 2 | auth_group_id | 管理员ID | mediumint | 8 | × | × | × | NULL | | 3 | action | 操作方法 | char | 20 | × | × | × | | - hkcms_model (模型表) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL| | 2 | name | 模型名称 | char | 50 | × | × | × | NULL | | 3 | tablename | 表名称 | char | 50 | × | × | × | NULL | | 4 | remark | 备注说明 | char | 255 | × | × | × | | | 5 | controller | 控制器 | char | 20 | × | × | × | Archives | | 6 | type | 类型:sing-独立表,more-主表加副表 | enum | 'single','more' | × | × | × | more | | 7 | category | 栏目模板 | varchar | 100 | × | × | × | | | 8 | list_tpl | 列表模板 | varchar | 100 | × | × | × | | | 9 | show_tpl | 内容模板 | varchar | 100 | × | × | × | | | 10 | create_time | 创建时间 | int | 11 | × | × | √ | NULL | | 11 | update_time | 更新时间 | int | 11 | × | × | √ | NULL | | 12 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | - hkcms_model_field(模型字段表) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL| | 2 | model_id | 模型ID | int | 10 | × | × | × | NULL | | 3 | field_name | 字段名称 | varchar | 20 | × | × | × | NULL | | 4 | field_title | 字段中文名 | varchar | 50 | × | × | × | | | 5 | form_type | 字段类型 | varchar | 20 | × | × | × | NULL | | 6 | field_group | 字段分组 | varchar | 50 | × | × | × | 常规 | | 7 | length | 长度 | int | 11 | × | × | × | 250 | | 8 | default_value | 默认值 | text | | × | × | √ | NULL | | 9 | data_list | 选项列表 | text | | × | × | √ | NULL | | 10 | max_number | 最大数量 | int | 11 | × | × | × | 0 | | 11 | decimals | 小数位 | tinyint | 4 | × | × | × | 0 | | 12 | rules | 规则 | varchar | 255 | × | × | × | | | 13 | tips | 提示信息 | varchar | 255 | × | × | × | | | 14 | error_tips | 错误提示 | varchar | 255 | × | × | × | | | 15 | extend | 附加属性 | varchar | 500 | × | × | × | | | 16 | iscore | 主表字段:1-是,0-不是 | tinyint | 1 | × | × | × | 0 | | 17 | default_field | 默认字段:1-默认,0-不是 | tinyint | 1 | × | × | × | 0 | | 18 | weigh | 排序 | int | 11 | × | × | × | 0 | | 19 | status | 状态:normal-正常,hidden-禁用 | enum | 'normal','hidden' | × | × | × | normal | | 20 | create_time | 创建时间 | int | 11 | × | × | √ | NULL | | 21 | update_time | 更新时间 | int | 11 | × | × | √ | NULL | - hkcms_model_field_bind(模型字段绑定栏目表) | 序号 | 字段 | 说明 | 数据类型 | 长度 | 自增 | 主键 | 允许空 | 默认值 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | id | ID | int | 10 | √ | √ | × | NULL| | 2 | category_id | 栏目ID | int | 11 | × | × | × | NULL| | 3 | model_field_id | 字段ID | int | 11 | × | × | × | NULL| | 4 | create_time | 创建时间 | int | 11 | × | × | √ | NULL | | 5 | update_time | 更新时间 | int | 11 | × | × | √ | NULL |