auth.sql 870 B

1234567891011121314151617181920
  1. CREATE DATABASE `saas_auth` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
  2. use `saas_auth`;
  3. create table `au_authorize_log` (
  4. id int unsigned primary key not null auto_increment,
  5. app_id varchar(30) comment '应用',
  6. account_id int unsigned not null comment '账号',
  7. client_ip varchar(100) comment '客户端IP',
  8. user_agent varchar(300) comment 'User Agent',
  9. login_time datetime comment '登录时间'
  10. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='登录日志';
  11. create table `au_virtual_authorize_log` (
  12. id int unsigned primary key not null auto_increment,
  13. app_id varchar(30) comment '应用',
  14. mobile varchar(20) not null comment '手机号',
  15. client_ip varchar(100) comment '客户端IP',
  16. user_agent varchar(300) comment 'User Agent',
  17. login_time datetime comment '登录时间'
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='登录日志';