UcDistrict.php 434 B

12345678910111213141516171819202122
  1. <?php
  2. namespace catchAdmin\citymanage\model;
  3. use catcher\base\CatchModel as Model;
  4. use catcher\traits\db\BaseOptionsTrait;
  5. use catcher\traits\db\ScopeTrait;
  6. class UcDistrict extends Model
  7. {
  8. use BaseOptionsTrait, ScopeTrait;
  9. // 表名
  10. public $name = 'uc_district';
  11. // 数据库字段映射
  12. public $field = array(
  13. 'id',
  14. // 名称
  15. 'name',
  16. // 所属省份
  17. 'city_id',
  18. );
  19. }