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

namespace JinDouYun\Dao\Customer;

use JinDouYun\Dao\BaseDao;

class DShopCard extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'customer_card';
        $this->_primary = 'id';
        $this->_fields = [
            "id",//int unsigned NOT NULL AUTO_INCREMENT,
            "customer_id",// int NOT NULL,
            "enterprise_id",// int NOT NULL,
            "card_id", // int NOT NULL,
            "status", // tinyint NOT NULL DEFAULT '1' COMMENT '0使用完1正常',
            "createTime",// int NOT NULL,
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}