feature: staff permission

This commit is contained in:
Tokumeikoi
2020-09-19 22:52:05 +08:00
parent d500769bd7
commit f0f636c722
10 changed files with 152 additions and 5 deletions

View File

@ -270,6 +270,7 @@ CREATE TABLE `v2_user` (
`enable` tinyint(1) NOT NULL DEFAULT '1',
`banned` tinyint(1) NOT NULL DEFAULT '0',
`is_admin` tinyint(1) NOT NULL DEFAULT '0',
`is_staff` tinyint(1) NOT NULL DEFAULT '0',
`last_login_at` int(11) DEFAULT NULL,
`last_login_ip` int(11) DEFAULT NULL,
`uuid` varchar(36) NOT NULL,
@ -288,4 +289,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2020-09-04 07:38:57
-- 2020-09-19 14:39:28

View File

@ -304,3 +304,6 @@ WHERE `ruleSettings` = '{}';
ALTER TABLE `v2_plan`
ADD `two_year_price` int(11) NULL AFTER `year_price`,
ADD `three_year_price` int(11) NULL AFTER `two_year_price`;
ALTER TABLE `v2_user`
ADD `is_staff` tinyint(1) NOT NULL DEFAULT '0' AFTER `is_admin`;