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