EnterModel.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace App\Models\Gteam;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Gteam\EnterModel
  6. *
  7. * @property int $id
  8. * @property \Illuminate\Support\Carbon $created_at 创建时间
  9. * @property \Illuminate\Support\Carbon $updated_at 更新时间
  10. * @property int $uid 用户
  11. * @property string $enter_type
  12. * @property int $activity_id 活动id
  13. * @property string $type 预约类型cj_wx:吃鸡微信|cj_qq:吃鸡QQ|wz_wx:王者微信|wz_qq王者QQ
  14. * @property int $rank_type rank要求
  15. * @property int $sex 性别限制0不限|1男|2女
  16. * @property int $match_succ_at 成功时间
  17. * @property int $room_id 房间id
  18. * @property int $score 分数
  19. * @property-read \App\Models\Gteam\ActivityModel $activity
  20. * @property-read \App\Models\Gteam\RoomModel $room
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel newModelQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel newQuery()
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel query()
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereActivityId($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereCreatedAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereEnterType($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereId($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereMatchSuccAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereRankType($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereRoomId($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereScore($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereSex($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereType($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereUid($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gteam\EnterModel whereUpdatedAt($value)
  36. * @mixin \Eloquent
  37. */
  38. class EnterModel extends Model
  39. {
  40. protected $table = 'kdgx_gteam_enter_list';
  41. protected $dateFormat = 'U';
  42. protected $fillable = ['uid', 'activity_id', 'type', 'rank_type', 'enter_type', 'sex', 'match_succ_at', 'room_id'];
  43. public function activity()
  44. {
  45. return $this->belongsTo(ActivityModel::class);
  46. }
  47. public function room()
  48. {
  49. return $this->belongsTo(RoomModel::class);
  50. }
  51. }