User.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class User.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property string $name
  12. * @property string $email
  13. * @property string $password
  14. * @property string|null $remember_token
  15. * @property \Illuminate\Support\Carbon|null $created_at
  16. * @property \Illuminate\Support\Carbon|null $updated_at
  17. * @property int|null $roles_id
  18. * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
  20. * @method static \Illuminate\Database\Eloquent\Builder|User query()
  21. * @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|User whereEmail($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|User whereRolesId($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
  29. * @mixin \Eloquent
  30. * @property string|null $phone 登录手机号
  31. * @property int|null $status 状态 1启用 2停用
  32. * @property int|null $is_del 是否删除 0否1是
  33. * @method static \Illuminate\Database\Eloquent\Builder|User whereIsDel($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|User wherePhone($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|User whereStatus($value)
  36. * @property string|null $api_token apitoken
  37. * @method static \Illuminate\Database\Eloquent\Builder|User whereApiToken($value)
  38. */
  39. class User extends Model implements Transformable
  40. {
  41. use TransformableTrait;
  42. /**
  43. * The attributes that are mass assignable.
  44. *
  45. * @var array
  46. */
  47. protected $guarded = ['id', 'updated_at', 'created_at'];
  48. }