DUserCenter.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 用户中心管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/11/01
  7. * Time: 14:50
  8. */
  9. namespace JinDouYun\Dao\UserCenter;
  10. use JinDouYun\Dao\BaseDao;
  11. class DUserCenter extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'user_center';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "mobile", //char(11) DEFAULT NULL COMMENT '手机号',
  20. "password", //varchar(255) DEFAULT NULL COMMENT '密码',
  21. "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  22. "source", //tinyint(3) DEFAULT '5' COMMENT '注册标识 1:后台注册',
  23. "isCustomer", //5:企业客户 4:企业用户,
  24. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  25. "updateTime", //int(10) DEFAULT NULL COMMENT '更新时间',
  26. "extend", //json DEFAULT NULL COMMENT '拓展字段',
  27. ];
  28. $this->_readonly = ['id'];
  29. $this->_create_autofill = [
  30. 'createTime' => time()
  31. ];
  32. $this->_update_autofill = [
  33. 'updateTime' => time()
  34. ];
  35. parent::__construct($serviceDB);
  36. }
  37. }