UserModel.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App\Models\Syj;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Syj\UserModel
  6. *
  7. * @property int $id
  8. * @property string $openid
  9. * @property string|null $unionid
  10. * @property int|null $phone 手机号
  11. * @property string $nickname 昵称
  12. * @property string $avatar 头像
  13. * @property int $sex 性别
  14. * @property string $province 省份
  15. * @property string $city 城市
  16. * @property \Illuminate\Support\Carbon $created_at
  17. * @property \Illuminate\Support\Carbon $updated_at
  18. * @property int $login_at 登录时间
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel newModelQuery()
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel newQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel query()
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereAvatar($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereCity($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereCreatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereId($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereLoginAt($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereNickname($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereOpenid($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel wherePhone($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereProvince($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereSex($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereUnionid($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Syj\UserModel whereUpdatedAt($value)
  34. * @mixin \Eloquent
  35. */
  36. class UserModel extends Model
  37. {
  38. //
  39. protected $table = 'syj_users';
  40. protected $dateFormat = 'U';
  41. protected $fillable = ['openid', 'unionid', 'phone', 'nickname', 'avatar', 'sex', 'province', 'city', 'login_at'];
  42. }