123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 商铺员工绑定管理Dao
- * Created by PhpStorm.
- * User: haoren
- * Date: 2020/11/30
- * Time: 15:00
- */
- namespace JinDouYun\Dao\Shop;
- use JinDouYun\Dao\BaseDao;
- class DShopBindStaff extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'shop_bind_staff';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '商铺员工类型',
- "userCenterId", //int(10) DEFAULT NULL COMMENT 'userCenterId',
- "staffId", //int(10) DEFAULT NULL COMMENT '员工id',
- "shopId", //int(10) DEFAULT NULL COMMENT '商铺id',
- "type", //tinyint(1) DEFAULT NULL COMMENT '类型 1:店长 2:员工',
- "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
- "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|