<?php
/**
 * 打卡时间模板
 * Created by PhpStorm.
 * User: wxj
 * Date: 2019/10/31
 * Time: 15:02
 */

namespace JinDouYun\Dao\Shop;

use JinDouYun\Dao\BaseDao;

class DShopGroup extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'shop_group';
        $this->_primary = 'id';
        $this->_fields = [
            'id',// int unsigned NOT NULL AUTO_INCREMENT,
            'name',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
            'shop_id',// int NOT NULL COMMENT '门店',
            'staff_id',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '绑定用户',
            'shift_vo_list',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '绑定班次',
            'createTime',// int NOT NULL,
            'group_id',// int NOT NULL,
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}