Skip to content
This repository was archived by the owner on May 14, 2018. It is now read-only.

Commit cb47569

Browse files
committed
Merge pull request #164 from Danielss89/patch-1
Update schema.sql
2 parents a30b4b3 + 5adba22 commit cb47569

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

data/schema.sql

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
CREATE TABLE IF NOT EXISTS `user_role` (
2-
`role_id` varchar(255) NOT NULL,
2+
`id` int(11) NOT NULL AUTO_INCREMENT,
3+
`roleId` varchar(255) NOT NULL,
34
`is_default` tinyint(1) NOT NULL,
4-
`parent` varchar(255) DEFAULT NULL,
5-
PRIMARY KEY (`role_id`)
5+
`parent_id` varchar(255) DEFAULT NULL,
6+
PRIMARY KEY (`id`)
67
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
78

89
CREATE TABLE IF NOT EXISTS `user_role_linker` (
910
`user_id` int(11) unsigned NOT NULL,
10-
`role_id` varchar(255) NOT NULL,
11+
`role_id` int(11) NOT NULL,
1112
PRIMARY KEY (`user_id`,`role_id`),
1213
KEY `role_id` (`role_id`)
1314
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

0 commit comments

Comments
 (0)