Region.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Region.
  8. *
  9. * @package namespace App\Models;
  10. * @method static \Illuminate\Database\Eloquent\Builder|Region newModelQuery()
  11. * @method static \Illuminate\Database\Eloquent\Builder|Region newQuery()
  12. * @method static \Illuminate\Database\Eloquent\Builder|Region query()
  13. * @mixin \Eloquent
  14. * @property int $id
  15. * @property string $name 城市名称
  16. * @property int $level 城市层级
  17. * @property int $parent_id 父级ID
  18. * @property string $p_ids 族谱
  19. * @property \Illuminate\Support\Carbon|null $created_at
  20. * @property \Illuminate\Support\Carbon|null $updated_at
  21. * @method static \Illuminate\Database\Eloquent\Builder|Region whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|Region whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|Region whereLevel($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Region whereName($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|Region wherePIds($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|Region whereParentId($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|Region whereUpdatedAt($value)
  28. */
  29. class Region extends Model implements Transformable
  30. {
  31. use TransformableTrait;
  32. /**
  33. * The attributes that are mass assignable.
  34. *
  35. * @var array
  36. */
  37. protected $guarded = ['id', 'updated_at', 'created_at'];
  38. }