upload_file.php 1.0 KB

12345678910111213141516171819
  1. <?php return array (
  2. 'time' => 1480978557,
  3. 'table' => 'upload_file',
  4. 'create' => 'DROP TABLE IF EXISTS `upload_file`;CREATE TABLE `upload_file`(`id` INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL COMMENT \'ID\',`name` VARCHAR(32) NOT NULL DEFAULT \'\' COMMENT \'文件名\',`source_name` VARCHAR(50) NOT NULL DEFAULT \'\' COMMENT \'原文件名\',`key` VARCHAR(32) NOT NULL DEFAULT \'\' COMMENT \'KEY\',`ext` VARCHAR(24) NOT NULL DEFAULT \'\' COMMENT \'后缀名\',`file` VARCHAR(150) NOT NULL DEFAULT \'\' COMMENT \'访问路径\',`width` INT(11) NOT NULL DEFAULT 0 COMMENT \'宽度\',`height` INT(11) NOT NULL DEFAULT 0 COMMENT \'高度\',`size` INT(11) NOT NULL DEFAULT 0 COMMENT \'大小\',`state` TINYINT(1) NOT NULL DEFAULT \'1\' COMMENT \'状态\',`cdate` INT(11) NOT NULL DEFAULT 0 COMMENT \'录入时间\') ENGINE = innodb',
  5. 'struct' =>
  6. array (
  7. 'id' => 0,
  8. 'name' => 1,
  9. 'source_name' => 2,
  10. 'key' => 3,
  11. 'ext' => 4,
  12. 'file' => 5,
  13. 'width' => 6,
  14. 'height' => 7,
  15. 'size' => 8,
  16. 'state' => 9,
  17. 'cdate' => 10,
  18. ),
  19. );