Country.php 727 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Http\Models;
  3. use Eloquent;
  4. use Illuminate\Database\Eloquent\Builder;
  5. use Illuminate\Database\Eloquent\Model;
  6. /**
  7. * 国家/地区
  8. * Class Country
  9. *
  10. * @package App\Http\Models
  11. * @mixin Eloquent
  12. * @property int $id
  13. * @property string $name 名称
  14. * @property string $code 代码
  15. * @method static Builder|Country newModelQuery()
  16. * @method static Builder|Country newQuery()
  17. * @method static Builder|Country query()
  18. * @method static Builder|Country whereCode($value)
  19. * @method static Builder|Country whereId($value)
  20. * @method static Builder|Country whereName($value)
  21. */
  22. class Country extends Model
  23. {
  24. public $timestamps = FALSE;
  25. protected $table = 'country';
  26. protected $primaryKey = 'id';
  27. }