1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 代理商Dao
- * Created by PhpStorm.
- * User: liuli
- * Date: 2021/6/24
- * Time: 12:00
- */
- namespace JinDouYun\Dao\Agent;
- use JinDouYun\Dao\BaseDao;
- class DAgents extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'agent';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- "workName", //varchar(50) DEFAULT '' COMMENT '公司名称',
- "contact", //json DEFAULT NULL COMMENT '联系人'
- "address", //varchar(255) DEFAULT '' COMMENT '公司地址',,
- "initiateStatus", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '启用状态(0禁用 1启用)',
- "deleteStatus", //tinyint(3) DEFAULT '5' 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()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|