12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * 区块 Dao
- * Created by PhpStorm.
- * User: QianNiao-C
- * Date: 2019/10/25
- * Time: 11:38
- */
- namespace JinDouYun\Dao\BlockManage;
- use JinDouYun\Dao\BaseDao;
- class DZone extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'zone';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT,
- "zoneData", //json DEFAULT NULL COMMENT '区块数据',
- "extends", //json DEFAULT NULL COMMENT '拓展字段',
- "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
- "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
- "enableStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '启用状态 默认5 启用 4禁用',
- "sort", //int(10) NOT NULL DEFAULT '0' COMMENT '排序 0-10 越小越靠前',
- "title",//varchar(50) NOT NULL DEFAULT NULL COMMENT '区块名称',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|