2021-05-08 16:22:28 +00:00
|
|
|
-- Comunic admin
|
|
|
|
CREATE TABLE `comunic_admin` (
|
|
|
|
`id` INT NOT NULL AUTO_INCREMENT,
|
|
|
|
`time_create` INT NULL,
|
|
|
|
`name` VARCHAR(45) NULL,
|
|
|
|
`email` VARCHAR(45) NULL,
|
|
|
|
`reset_token` VARCHAR(255) NULL,
|
|
|
|
`reset_token_expire` INT NULL,
|
|
|
|
PRIMARY KEY (`id`));
|
|
|
|
|
|
|
|
CREATE TABLE `comunic_admin_key` (
|
2021-05-14 08:58:11 +00:00
|
|
|
`id` INT NOT NULL AUTO_INCREMENT,
|
2021-05-08 16:22:28 +00:00
|
|
|
`admin_id` INT NULL,
|
|
|
|
`name` VARCHAR(45) NULL,
|
|
|
|
`time_add` INT NULL,
|
2021-05-14 09:12:41 +00:00
|
|
|
`credential` TEXT NULL,
|
2021-07-11 15:54:15 +00:00
|
|
|
`password` VARCHAR(255) NULL,
|
2021-05-08 16:22:28 +00:00
|
|
|
PRIMARY KEY (`id`));
|
2021-05-14 16:25:53 +00:00
|
|
|
|
|
|
|
CREATE TABLE `comunic_admin_roles` (
|
|
|
|
`id` INT NOT NULL AUTO_INCREMENT,
|
|
|
|
`admin_id` INT NOT NULL,
|
|
|
|
`role_id` VARCHAR(25) NULL,
|
|
|
|
`time_insert` INT NULL,
|
|
|
|
PRIMARY KEY (`id`));
|
2021-07-10 17:09:54 +00:00
|
|
|
|
|
|
|
CREATE TABLE `comunic_admin_log` (
|
|
|
|
`id` INT NOT NULL AUTO_INCREMENT,
|
|
|
|
`admin_id` INT NULL,
|
|
|
|
`ip` VARCHAR(40) NULL,
|
|
|
|
`time` INT NULL,
|
2021-07-10 17:40:41 +00:00
|
|
|
`action` VARCHAR(255) NULL,
|
2021-07-10 17:09:54 +00:00
|
|
|
PRIMARY KEY (`id`));
|