menu authorities
This commit is contained in:
31
queries/authority_20190725.sql
Normal file
31
queries/authority_20190725.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
CREATE TABLE `authority` (
|
||||
`a_id` INT NOT NULL AUTO_INCREMENT,
|
||||
`a_name` VARCHAR(126) CHARACTER SET 'utf8' COLLATE 'utf8_hungarian_ci' NOT NULL,
|
||||
`a_title` VARCHAR(126) CHARACTER SET 'utf8' COLLATE 'utf8_hungarian_ci' NOT NULL,
|
||||
PRIMARY KEY (`a_id`));
|
||||
|
||||
CREATE TABLE `user_authority` (
|
||||
`ua_id` INT NOT NULL AUTO_INCREMENT,
|
||||
`ua_user_kid_uk_id` INT NOT NULL,
|
||||
`ua_authority_a_id` INT NOT NULL,
|
||||
PRIMARY KEY (`ua_id`),
|
||||
INDEX `index2` (`ua_user_kid_uk_id` ASC),
|
||||
INDEX `index3` (`ua_authority_a_id` ASC));
|
||||
|
||||
CREATE TABLE `user_authority` (
|
||||
`ua_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`ua_user_kid_uk_id` int(11) NOT NULL,
|
||||
`ua_authority_a_id` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`ua_id`),
|
||||
INDEX `index2` (`ua_user_kid_uk_id` ASC),
|
||||
INDEX `index3` (`ua_authority_a_id` ASC));
|
||||
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('admin', 'Admin');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('members', 'Tagok');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('trainings', 'Edzések');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('presence', 'Jelenlét');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('coaches', 'Edzők');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('money_deposit', 'Befizetések');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('money_expense', 'Kiadások');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('money_income', 'Bevételek');
|
||||
INSERT INTO `authority` (`a_name`, `a_title`) VALUES ('settings', 'Beállítások');
|
||||
@@ -1,5 +1,5 @@
|
||||
ALTER TABLE `badminton_coach`.`training_type`
|
||||
ALTER TABLE `training_type`
|
||||
ADD COLUMN `trt_default_price` INT NULL DEFAULT NULL AFTER `trt_deleted`;
|
||||
|
||||
ALTER TABLE `badminton_coach`.`training`
|
||||
ALTER TABLE `training`
|
||||
ADD COLUMN `tr_price` INT NULL DEFAULT NULL AFTER `tr_deleted`;
|
||||
|
||||
Reference in New Issue
Block a user