<?php

namespace JinDouYun\Dao\Price;

use JinDouYun\Dao\BaseDao;

class DCustomerPriceEffective extends BaseDao
{
    public function __construct($serviceDB = 'price')
    {
        $this->_table = 'customerPriceEffective';
        $this->_primary = 'id';
        $this->_fields = [
            "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
            "shopId", //int(11) NOT NULL COMMENT '店铺id',
            "customerId", //int(10) NOT NULL COMMENT '客户id',
            "salePrice", //json NOT NULL COMMENT '调整价格',
            "startTime", //int(10) DEFAULT NULL COMMENT '开始时间',
            "endTime", //int(10) DEFAULT NULL COMMENT '结束时间',
            "no", //char(20) NOT NULL COMMENT '客户调价单单号',
            "goodsId", //int(10) NOT NULL COMMENT '商品id',
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
        ];
        $this->_update_autofill = [
        ];

        parent::__construct($serviceDB);
    }
}