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

namespace JinDouYun\Dao\Shop;

use JinDouYun\Dao\BaseDao;

class DShopKey extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'shop_key';
        $this->_primary = 'id';
        $this->_fields = [
            "id", // int unsigned NOT NULL AUTO_INCREMENT,
            "shop_id", // int NOT NULL COMMENT '商店id',
            "appKey",// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
            "appSecret",//varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
            "corpid",//varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
            "ssoSecred", //varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
            "createTime", //varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}