<?php
/**
 * 地区 Dao
 * Created by PhpStorm.
 * User: QianNiao-C
 * Date: 2019/10/26
 * Time: 10:01
 */

namespace JinDouYun\Dao\SysAreaChina;

use JinDouYun\Dao\BaseDao;

class DSysAreaChina extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'sys_area_china';
        $this->_primary = 'id';
        $this->_fields = [
            "id", //int(10) NOT NULL AUTO_INCREMENT,
            "code", //int(10) DEFAULT '0' COMMENT '行政区划代码',
            "pcode", //int(10) DEFAULT '0' COMMENT '父级行政区划代码',
            "name", //varchar(100) DEFAULT '' COMMENT '区域名称',
            "depth", //tinyint(4) DEFAULT '1' COMMENT '深度（1：省  2：市  3：区县  4：乡镇街道）',
        ];
        $this->_readonly = ['id'];
        parent::__construct($serviceDB);
    }
}