123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * 打卡时间模板
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/31
- * Time: 15:02
- */
- namespace JinDouYun\Dao\Shop;
- use JinDouYun\Dao\BaseDao;
- class DShopTemplate extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'shop_template';
- $this->_primary = 'id';
- $this->_fields = [
- "id", // int unsigned NOT NULL AUTO_INCREMENT,
- "shop_id", // int NOT NULL COMMENT '商店id',
- "name",// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
- "shift_id",// int NOT NULL COMMENT '班次id',
- "single_time",// decimal(10,2) NOT NULL COMMENT '单次打卡奖励',
- 'time',// text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '时间',
- "createTime", // int DEFAULT NULL COMMENT '创建时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|