Region.php 915 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Models;
  3. use DateTimeInterface;
  4. use Illuminate\Database\Eloquent\Model;
  5. /**
  6. * App\Models\Region
  7. *
  8. * @method static \Illuminate\Database\Eloquent\Builder|Region newModelQuery()
  9. * @method static \Illuminate\Database\Eloquent\Builder|Region newQuery()
  10. * @method static \Illuminate\Database\Eloquent\Builder|Region query()
  11. * @mixin \Eloquent
  12. */
  13. class Region extends Model
  14. {
  15. /**
  16. * The table associated with the model.
  17. *
  18. * @var string
  19. */
  20. protected $table = 'regions';
  21. /**
  22. * The primary key associated with the table.
  23. *
  24. * @var string
  25. */
  26. protected $primaryKey = 'id';
  27. /**
  28. * Indicates if the model should be timestamped.
  29. *
  30. * @var bool
  31. */
  32. public $timestamps = true;
  33. /**
  34. * 不能被批量赋值的属性
  35. *
  36. * @var array
  37. */
  38. protected $guarded = ['id', 'updated_at', 'created_at'];
  39. }