text: --
  --    Copyright 2010-2016 the original author or authors.
  --
  --    Licensed under the Apache License, Version 2.0 (the "License");
  --    you may not use this file except in compliance with the License.
  --    You may obtain a copy of the License at
  --
  --       http://www.apache.org/licenses/LICENSE-2.0
  --
  --    Unless required by applicable law or agreed to in writing, software
  --    distributed under the License is distributed on an "AS IS" BASIS,
  --    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  --    See the License for the specific language governing permissions and
  --    limitations under the License.
  --
  
  -- // creata table upms_log
  -- Migration SQL that makes the change goes here.
  
  -- ----------------------------
  -- Table structure for upms_log
  -- ----------------------------
  
  CREATE TABLE `upms_log` (
    `log_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
    `description` varchar(100) DEFAULT NULL COMMENT '操作描述',
    `username` varchar(20) DEFAULT NULL COMMENT '操作用户',
    `start_time` bigint(20) DEFAULT NULL COMMENT '操作时间',
    `spend_time` int(11) DEFAULT NULL COMMENT '消耗时间',
    `base_path` varchar(500) DEFAULT NULL COMMENT '根路径',
    `uri` varchar(500) DEFAULT NULL COMMENT 'URI',
    `url` varchar(500) DEFAULT NULL COMMENT 'URL',
    `method` varchar(10) DEFAULT NULL COMMENT '请求类型',
    `parameter` mediumtext,
    `user_agent` varchar(500) DEFAULT NULL COMMENT '用户标识',
    `ip` varchar(30) DEFAULT NULL COMMENT 'IP地址',
    `result` mediumtext,
    `permissions` varchar(100) DEFAULT NULL COMMENT '权限值',
    PRIMARY KEY (`log_id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='操作日志';
  
  -- //@UNDO
  -- SQL to undo the change goes here.
  
  DROP TABLE IF EXISTS `upms_log`;
  