DMaterialCategory.Class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * 素材分类Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2020/04/27
  7. * Time: 14:49
  8. */
  9. namespace JinDouYun\Dao\Material;
  10. use JinDouYun\Dao\BaseDao;
  11. class DMaterialCategory extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'material_category';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT,
  19. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  20. "shopId",
  21. "pid", //int(10) NOT NULL DEFAULT '0' COMMENT '上级分类',
  22. "title", //varchar(255) NOT NULL COMMENT '分类名称',
  23. "deleteStatus", //tinyint(3) NOT NULL COMMENT '分类状态 4:删除 5:正常',
  24. "createTime", //int(10) NOT NULL COMMENT '创建时间',
  25. "updateTime", //int(10) NOT NULL COMMENT '修改时间',
  26. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  27. ];
  28. $this->_readonly = ['id'];
  29. $this->_create_autofill = [
  30. 'createTime' => time()
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }