1
0
mirror of https://github.com/chylex/Lightning-Tracker.git synced 2024-11-24 22:42:50 +01:00
Lightning-Tracker/res/~database/TrackerRolePermTable.sql

19 lines
461 B
SQL

CREATE TABLE IF NOT EXISTS `tracker_role_perms` (
`role_id` INT NOT NULL,
`permission` ENUM (
'settings',
'members.list',
'members.manage',
'milestones.edit',
'issues.create',
'issues.edit.all',
'issues.delete.all') NOT NULL,
PRIMARY KEY (`role_id`, `permission`),
FOREIGN KEY (`role_id`)
REFERENCES `tracker_roles` (`id`)
ON UPDATE CASCADE
ON DELETE CASCADE
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE utf8mb4_general_ci