MySQL Create Table SQL
Table Structure: okayapi_ry_sys_role_dept:/tablelist/okayapi_ry_sys_role_dept.html
-- MySQL Table okayapi_ry_sys_role_dept
-- From: OkayAPI.com
CREATE TABLE `okayapi_ry_sys_role_dept` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
`dept_id` bigint(20) NOT NULL COMMENT '部门ID',
KEY `role_id` (`role_id`),
KEY `dept_id` (`dept_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'RuoYi后台管理系统-角色和部门关联表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-2 of 2 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
role_id | bigint(20) | 否 | 角色ID | |||
dept_id | bigint(20) | 否 | 部门ID |