<?php


namespace JinDouYun\Dao\Order;


use JinDouYun\Dao\BaseDao;

/**
 * @copyright   Copyright (c) https://www.qianniaovip.com All rights reserved
 * Description:
 * Class DSupplierOrderIndex
 * @package JinDouYun\Dao\Order
 */
class DSupplierOrderIndex extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'supplier_order_index';
        $this->_primary = 'id';
        $this->_fields = [
            "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
            "orderId",
            "purchaseStatus",
            "no",//char(25) NOT NULL COMMENT '订单编号',
            "reservoir",
            "supplierId",//int(10) DEFAULT NULL COMMENT '供应商Id',
            "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
            "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];
        $this->_update_autofill = [
            'updateTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}