12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * 商铺管理模块
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/31
- * Time: 15:02
- */
- namespace JinDouYun\Dao\Shop;
- use JinDouYun\Dao\BaseDao;
- class DShopClock extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'shop_clock';
- $this->_primary = 'id';
- $this->_fields = [
- "id", // int unsigned NOT NULL AUTO_INCREMENT,
- "shop_id", // int NOT NULL COMMENT '商店id',
- "uid", // int NOT NULL COMMENT '员工id',
- "time", // vint DEFAULT NULL COMMENT '打卡时间',
- "createTime", // int DEFAULT NULL COMMENT '创建时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|