UserModel.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace App\Models\Gnight;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Gnight\UserModel
  6. *
  7. * @property int $uid 主键,用户
  8. * @property \Illuminate\Support\Carbon $created_at 创建时间
  9. * @property \Illuminate\Support\Carbon|null $updated_at 更新时间
  10. * @property string|null $headimgurl 头像
  11. * @property string|null $nickname 昵称
  12. * @property int $sex 性别0未知1男2女
  13. * @property int $like 喜欢0所有1男2女
  14. * @property string|null $voice 语音
  15. * @property int $voice_state 语音状态:-1:审核不通过;-2:系统下线;0下线;1:上线;2:审核;
  16. * @property int $contact_type 联系方式0:不存在;1电话2:微信;3:qq
  17. * @property string|null $contact 联系方式
  18. * @property int $share_group 分享到群里到次数
  19. * @property int $first_voice 第一次上次语音
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel newModelQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel newQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel query()
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereContact($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereContactType($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereCreatedAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereFirstVoice($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereHeadimgurl($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereLike($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereNickname($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereSex($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereShareGroup($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereUid($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereUpdatedAt($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereVoice($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gnight\UserModel whereVoiceState($value)
  36. * @mixin \Eloquent
  37. */
  38. class UserModel extends Model
  39. {
  40. protected $table = 'kdgx_gnight_user';
  41. protected $primaryKey = 'uid';
  42. protected $dateFormat = 'U';
  43. protected $fillable = [
  44. 'uid',
  45. 'headimgurl',
  46. 'nickname',
  47. 'sex',
  48. 'like',
  49. 'voice',
  50. 'voice_state',
  51. 'contact_type',
  52. 'contact',
  53. 'share_group',
  54. 'first_voice'
  55. ];
  56. }