1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * 素材分类Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2020/04/27
- * Time: 14:49
- */
- namespace JinDouYun\Dao\Material;
- use JinDouYun\Dao\BaseDao;
- class DMaterialCategory extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'material_category';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT,
- "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
- "shopId",
- "pid", //int(10) NOT NULL DEFAULT '0' COMMENT '上级分类',
- "title", //varchar(255) NOT NULL COMMENT '分类名称',
- "deleteStatus", //tinyint(3) NOT NULL COMMENT '分类状态 4:删除 5:正常',
- "createTime", //int(10) NOT NULL COMMENT '创建时间',
- "updateTime", //int(10) NOT NULL COMMENT '修改时间',
- "extend", //json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|