image_upload 1.2 KB

12345678910111213141516171819
  1. <?php return array (
  2. 'time' => 1449933503,
  3. 'table' => 'image_upload',
  4. 'create' => 'DROP TABLE IF EXISTS `image_upload`;CREATE TABLE `image_upload`(`id` INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL COMMENT \'配置ID\',`name` VARCHAR(24) 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 \'大小\',`water` VARCHAR(150) NOT NULL DEFAULT \'\' COMMENT \'水印图\',`water_position` INT(1) NOT NULL DEFAULT \'1\' COMMENT \'水印图位置\',`cover` INT(1) NOT NULL DEFAULT \'1\' COMMENT \'是否覆盖\',`state` TINYINT(1) NOT NULL DEFAULT \'1\' COMMENT \'状态\',`cdate` INT(11) NOT NULL DEFAULT 0 COMMENT \'录入时间\')',
  5. 'struct' =>
  6. array (
  7. 'id' => 0,
  8. 'name' => 1,
  9. 'width' => 2,
  10. 'height' => 3,
  11. 'size' => 4,
  12. 'water' => 5,
  13. 'water_position' => 6,
  14. 'cover' => 7,
  15. 'state' => 8,
  16. 'cdate' => 9,
  17. ),
  18. 'insert' => 'INSERT INTO `image_upload` (name,cover,state,cdate) VALUES ("默认配置",1,1,1449933503),("头像图片配置",1,1,1449933503),("用户上传图片配置",1,1,1449933503),("水印图配置",1,1,1449933503)',
  19. );