12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * 案例Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2020/03/28
- * Time: 16:01
- */
- namespace JinDouYun\Dao\Manage;
- use JinDouYun\Dao\BaseDao;
- class DCase extends BaseDao
- {
- public function __construct($serviceDB = 'manage')
- {
- $this->_table = 'case';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
- "title", //varchar(255) NOT NULL COMMENT '标题',
- "thumbnail", //varchar(255) NOT NULL COMMENT '缩略图',
- "caseCategoryId", //int(10) NOT NULL DEFAULT '0' COMMENT '案例分类',
- 'slogan',
- 'time',
- "clicks", //int(10) DEFAULT NULL COMMENT '点击量',
- "content", //text COMMENT '案例内容',
- "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
- "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- ];
- $this->_update_autofill = [
- ];
- parent::__construct($serviceDB);
- }
- }
|