DShopBindStaff.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 商铺员工绑定管理Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2020/11/30
  7. * Time: 15:00
  8. */
  9. namespace JinDouYun\Dao\Shop;
  10. use JinDouYun\Dao\BaseDao;
  11. class DShopBindStaff extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'shop_bind_staff';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '商铺员工类型',
  19. "userCenterId", //int(10) DEFAULT NULL COMMENT 'userCenterId',
  20. "staffId", //int(10) DEFAULT NULL COMMENT '员工id',
  21. "shopId", //int(10) DEFAULT NULL COMMENT '商铺id',
  22. "type", //tinyint(1) DEFAULT NULL COMMENT '类型 1:店长 2:员工',
  23. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  24. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }