1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 用户中心管理Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/11/01
- * Time: 14:50
- */
- namespace JinDouYun\Dao\UserCenter;
- use JinDouYun\Dao\BaseDao;
- class DUserCenter extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'user_center';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- "mobile", //char(11) DEFAULT NULL COMMENT '手机号',
- "password", //varchar(255) DEFAULT NULL COMMENT '密码',
- "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
- "source", //tinyint(3) DEFAULT '5' COMMENT '注册标识 1:后台注册',
- "isCustomer", //5:企业客户 4:企业用户,
- "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);
- }
- }
|