DShopPartner.Class.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * 商铺合作管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/11/01
  7. * Time: 10:00
  8. */
  9. namespace JinDouYun\Dao\ShopPartner;
  10. use JinDouYun\Dao\BaseDao;
  11. class DShopPartner extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'shop_partner';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  19. "logo", //varchar(255) DEFAULT NULL COMMENT '企业logo',
  20. "name", //varchar(30) DEFAULT NULL COMMENT '合伙人姓名/合伙企业名称',
  21. "model", //tinyint(3) DEFAULT NULL COMMENT '经营模式 1:直营 2:加盟',
  22. "provinceCode", //varchar(20) DEFAULT NULL COMMENT '省编码',
  23. "cityCode", //varchar(20) DEFAULT NULL COMMENT '市编码',
  24. "districtCode", //varchar(20) DEFAULT NULL COMMENT '区编码',
  25. "address", //varchar(255) DEFAULT NULL COMMENT '合伙人地址',
  26. "userCenterId", //int(10) DEFAULT NULL COMMENT '职工负责人id',
  27. "userName",
  28. "mobile", //char(11) DEFAULT NULL COMMENT '负责人联系电话',
  29. "enterpriseId", //int(11) NOT NULL COMMENT '企业id',
  30. "shopId", //int(10) NOT NULL COMMENT '管理的商铺id',
  31. "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 5:正常 4:删除',
  32. "enableStatus", //tinyint(3) DEFAULT '5' COMMENT '启用状态 5 启用 4禁用',
  33. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  34. "updateTime", //int(10) DEFAULT NULL COMMENT '更新时间',
  35. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  36. ];
  37. $this->_readonly = ['id'];
  38. $this->_create_autofill = [
  39. 'createTime' => time()
  40. ];
  41. $this->_update_autofill = [
  42. 'updateTime' => time()
  43. ];
  44. parent::__construct($serviceDB);
  45. }
  46. }