DSysAreaChina.Class.php 860 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * 地区 Dao
  4. * Created by PhpStorm.
  5. * User: QianNiao-C
  6. * Date: 2019/10/26
  7. * Time: 10:01
  8. */
  9. namespace JinDouYun\Dao\SysAreaChina;
  10. use JinDouYun\Dao\BaseDao;
  11. class DSysAreaChina extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'sys_area_china';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT,
  19. "code", //int(10) DEFAULT '0' COMMENT '行政区划代码',
  20. "pcode", //int(10) DEFAULT '0' COMMENT '父级行政区划代码',
  21. "name", //varchar(100) DEFAULT '' COMMENT '区域名称',
  22. "depth", //tinyint(4) DEFAULT '1' COMMENT '深度(1:省 2:市 3:区县 4:乡镇街道)',
  23. ];
  24. $this->_readonly = ['id'];
  25. parent::__construct($serviceDB);
  26. }
  27. }