User.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. declare (strict_types=1);
  3. namespace Ycbl\AdminAuth\Model;
  4. use Carbon\Carbon;
  5. use Hyperf\DbConnection\Model\Model;
  6. /**
  7. * @property int $id
  8. * @property string $real_name
  9. * @property string $card_no
  10. * @property string $telephone
  11. * @property string $password
  12. * @property string $last_ip
  13. * @property string $status
  14. * @property string $secret
  15. * @property int $create_user
  16. * @property int $update_user
  17. * @property int $psw_time
  18. * @property Carbon $created_at
  19. * @property Carbon $updated_at
  20. */
  21. class User extends Model
  22. {
  23. /**
  24. * The table associated with the model.
  25. *
  26. * @var string
  27. */
  28. protected $table = 'users';
  29. /**
  30. * The attributes that are mass assignable.
  31. *
  32. * @var array
  33. */
  34. protected $fillable = [];
  35. /**
  36. * The attributes that should be cast to native types.
  37. *
  38. * @var array
  39. */
  40. protected $casts = ['id' => 'integer', 'create_user' => 'integer', 'update_user' => 'integer', 'psw_time' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
  41. protected $hidden = ['password'];
  42. }