db.sql 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. CREATE TABLE `user`
  2. (
  3. `id` varchar(32) NOT NULL COMMENT '用户编号',
  4. `user_name` varchar(50) NOT NULL COMMENT '用户名',
  5. `password` varchar(100) DEFAULT NULL COMMENT '密码',
  6. `role` tinyint(4) NOT NULL DEFAULT '0' COMMENT '角色 0-普通用户 1-管理员',
  7. PRIMARY KEY (`id`),
  8. UNIQUE KEY `user_name` (`user_name`) USING BTREE,
  9. KEY `role` (`role`) USING BTREE
  10. ) ENGINE = InnoDB
  11. DEFAULT CHARSET = utf8mb4 COMMENT ='用户信息';
  12. INSERT INTO ait.user (id, user_name, password, role) VALUES ('2d4ff29113b737f74fc9bbdf00c7e5fd', 'admin', 'a66abb5684c45962d887564f08346e8d', 1);
  13. CREATE TABLE `record`
  14. (
  15. `id` varchar(32) NOT NULL COMMENT '用户编号',
  16. `user_name` varchar(50) NOT NULL COMMENT '用户名',
  17. `file_type` varchar(10) NOT NULL COMMENT '文件类型',
  18. `file_path` varchar(100) NOT NULL COMMENT '文件路径',
  19. `file_url` varchar(100) NOT NULL COMMENT '文件网络路径',
  20. `result` varchar(1000) COMMENT '结果',
  21. `create_time` varchar(100) NOT NULL COMMENT '创建时间',
  22. `update_time` varchar(100) COMMENT '创建时间',
  23. `file_name` varchar(100) COMMENT '创建时间',
  24. PRIMARY KEY (`id`)
  25. ) ENGINE = InnoDB
  26. DEFAULT CHARSET = utf8mb4 COMMENT ='测试记录表';