<?php

namespace JinDouYun\Dao\System;

use JinDouYun\Dao\BaseDao;

class DCustomerSourceDeploy extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'customer_source_deploy';
        $this->_primary = 'id';
        $this->_fields = [
            "id", //int(11) NOT NULL AUTO_INCREMENT,
            "sId", //int(10) DEFAULT NULL COMMENT '名称表id',
            "deleteStatus", //int(1) DEFAULT '5' COMMENT '删除(5删除  4正常)',
            "defaultStatus", //int(1) DEFAULT '5' COMMENT '默认状态(5默认)',
            "enableStatus", //int(1) DEFAULT '5' COMMENT '启用状态(5启用)',
            "createTime", //varchar(50) DEFAULT NULL COMMENT '创建时间',
            "updateTime", //varchar(50) DEFAULT NULL COMMENT '修改时间',
            "enterpriseId", //int(11) DEFAULT NULL COMMENT '企业id',
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];
        $this->_update_autofill = [
            'updateTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}