EnterModel.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace App\Models\Goodnight;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Goodnight\EnterModel
  6. *
  7. * @property int $id
  8. * @property int $uid uid
  9. * @property string $type 类型
  10. * @property int $activity_id 活动ID
  11. * @property int $room_id 房间ID
  12. * @property \Illuminate\Support\Carbon $created_at
  13. * @property \Illuminate\Support\Carbon $updated_at
  14. * @property int $match_at 匹配时间
  15. * @property-read \App\Models\Goodnight\ActivityModel $activity
  16. * @property-read \App\Models\Goodnight\RoomModel $room
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereActivityId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereMatchAt($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereRoomId($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereType($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereUid($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\EnterModel whereUpdatedAt($value)
  28. * @mixin \Eloquent
  29. */
  30. class EnterModel extends Model
  31. {
  32. //
  33. protected $table = 'kdgx_goodnight_enters';
  34. protected $dateFormat = "U";
  35. protected $fillable = ['uid', 'type', 'activity_id'];
  36. public function activity()
  37. {
  38. return $this->belongsTo(ActivityModel::class);
  39. }
  40. public function room()
  41. {
  42. return $this->belongsTo(RoomModel::class);
  43. }
  44. }