User.php 578 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare (strict_types=1);
  3. namespace App\Model;
  4. /**
  5. */
  6. class User extends Model
  7. {
  8. /**
  9. * The table associated with the model.
  10. *
  11. * @var string
  12. */
  13. protected $table = 'Users';
  14. /**
  15. * The attributes that are mass assignable.
  16. *
  17. * @var array
  18. */
  19. protected $fillable = ['id', 'real_name', 'nickname', 'avatar', 'email', 'enable', 'is_admin', 'is_agent', 'user_type', 'created_at', 'updated_at'];
  20. /**
  21. * The attributes that should be cast to native types.
  22. *
  23. * @var array
  24. */
  25. protected $casts = [];
  26. }