Country.php 665 B

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