CycQuestionModel.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App\Models\Game;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Game\CycQuestionModel
  6. *
  7. * @property int $id
  8. * @property string $title
  9. * @property int $count
  10. * @property int $rate
  11. * @property array $questions
  12. * @property array $answers
  13. * @property int $show_at 显示时间
  14. * @property \Illuminate\Support\Carbon $created_at
  15. * @property \Illuminate\Support\Carbon $updated_at
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel newModelQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel newQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel query()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereAnswers($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereCount($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereQuestions($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereRate($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereShowAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereTitle($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereUpdatedAt($value)
  28. * @mixin \Eloquent
  29. */
  30. class CycQuestionModel extends Model
  31. {
  32. //
  33. protected $table = 'game_cyc_questions';
  34. protected $dateFormat = 'U';
  35. protected $fillable = ['title', 'count', 'rate', 'questions', 'answers', 'show_at'];
  36. protected $casts = [
  37. 'questions' => 'array',
  38. 'answers' => 'array'
  39. ];
  40. }