file.sql 672 B

123456789101112131415161718192021
  1. CREATE DATABASE `saas_file` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
  2. use `saas_file`;
  3. create table `f_fileinfo` (
  4. id int unsigned primary key not null auto_increment,
  5. folder_id int comment '文件夹',
  6. name varchar(100) not null comment '名称',
  7. full_path varchar(300) comment '保存路径',
  8. mime varchar(100) comment 'mime',
  9. ext varchar(100) comment '扩展名',
  10. type varchar(10) comment '类型',
  11. size int comment '大小',
  12. company_id int,
  13. creator_id int,
  14. create_time datetime,
  15. updater_id int,
  16. update_time datetime,
  17. deleted boolean,
  18. deleter_id int,
  19. delete_time datetime
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件';