UserModel.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace App\Models\Goodnight;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Goodnight\UserModel
  6. *
  7. * @property int $uid
  8. * @property \Illuminate\Support\Carbon $created_at 创建时间
  9. * @property \Illuminate\Support\Carbon $updated_at 更新时间
  10. * @property string $cover 封面
  11. * @property int $gnight_coin 硬币
  12. * @property int $like_sex 性别偏好0未知;1男2女
  13. * @property string $like_tone_1 声音偏好:高
  14. * @property string $like_tone_2 声音偏好:中
  15. * @property string $like_tone_3 声音偏好:低
  16. * @property int $subscribed_at 订阅到期时间
  17. * @property int $invite_uid 邀请用户
  18. * @property int $get_like 获得的赞数
  19. * @property string $get_like_headimgurl 最近点赞的人的头像集合
  20. * @property int $subscribe_cnt 订阅次数
  21. * @property string|null $voice
  22. * @property int $login_at 登录时间
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel newModelQuery()
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel newQuery()
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel query()
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereCover($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereCreatedAt($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereGetLike($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereGetLikeHeadimgurl($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereGnightCoin($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereInviteUid($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereLikeSex($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereLikeTone1($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereLikeTone2($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereLikeTone3($value)
  36. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereLoginAt($value)
  37. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereSubscribeCnt($value)
  38. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereSubscribedAt($value)
  39. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereUid($value)
  40. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereUpdatedAt($value)
  41. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\UserModel whereVoice($value)
  42. * @mixin \Eloquent
  43. */
  44. class UserModel extends Model
  45. {
  46. protected $table = "kdgx_goodnight_user";
  47. protected $dateFormat = 'U';
  48. protected $primaryKey = 'uid';
  49. protected $fillable = [
  50. 'uid',
  51. 'created_at',
  52. 'updated_at',
  53. 'login_at',
  54. 'cover',
  55. 'gnight_coin',
  56. 'like_sex',
  57. 'like_tone_1',
  58. 'like_tone_2',
  59. 'like_tone_3',
  60. 'subscribed_at',
  61. 'subscribe_cnt',
  62. 'invite_uid',
  63. 'get_like',
  64. 'voice'
  65. ];
  66. }