add the tbl_action_logs

pull/63/head
hyh123a 2021-08-25 15:14:25 +08:00
parent 3565d0dbcc
commit cb0ccfddc0
1 changed files with 17 additions and 0 deletions

View File

@ -87,3 +87,20 @@ CREATE TABLE IF NOT EXISTS `myems_user_db`.`tbl_notifications` (
`url` VARCHAR(128), `url` VARCHAR(128),
PRIMARY KEY (`id`)); PRIMARY KEY (`id`));
CREATE INDEX `tbl_notifications_index_1` ON `myems_user_db`.`tbl_notifications` (`user_id`, `created_datetime_utc`, `status`); CREATE INDEX `tbl_notifications_index_1` ON `myems_user_db`.`tbl_notifications` (`user_id`, `created_datetime_utc`, `status`);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_user_db`.`tbl_action_logs`
-- ---------------------------------------------------------------------------------------------------------------------
DROP TABLE IF EXISTS `myems_user_db`.`tbl_action_logs` ;
CREATE TABLE IF NOT EXISTS `myems_user_db`.`tbl_action_logs` (
`id` BIGINT NOT NULL AUTO_INCREMENT,
`user_name` VARCHAR(256) NOT NULL,
`date_time` DATETIME NOT NULL,
`action` VARCHAR(256) NOT NULL,
`class` VARCHAR(256) NOT NULL,
`record_id` BIGINT NULL,
`record_text` JSON NULL,
PRIMARY KEY (`id`));
CREATE INDEX `tbl_action_logs_index_1` ON `myems_user_db`.`tbl_action_logs` (`user_name`, `date_time`, `action`);