<?php
/**
 * 配送线路客户Dao
 * Created by PhpStorm.
 * User: haoren
 * Date: 2021/04/20
 * Time: 16:00
 */

namespace JinDouYun\Dao\Delivery;

use JinDouYun\Dao\BaseDao;

class DDeliveryRouteCustomer extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'delivery_route_customer';
        $this->_primary = 'id';
        $this->_fields = [
            "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '线路绑定客户',
            "routeId", //int(10) DEFAULT NULL COMMENT '线路id',
            "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
            "sort", //int(10) DEFAULT '0' COMMENT '排序 从大到小',
            "deleteStatus", //tinyint(1) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
            "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
            "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];
        $this->_update_autofill = [
            'updateTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}