CycAnserModel.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Models\Game;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Game\CycAnserModel
  6. *
  7. * @property int $id
  8. * @property int $question_id 问题ID
  9. * @property string $keyword 关键词
  10. * @property string $content 答案内容
  11. * @property \Illuminate\Support\Carbon $created_at
  12. * @property \Illuminate\Support\Carbon $updated_at
  13. * @property int $deleted_at
  14. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereContent($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereCreatedAt($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereDeletedAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereKeyword($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereQuestionId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycAnserModel whereUpdatedAt($value)
  24. * @mixin \Eloquent
  25. */
  26. class CycAnserModel extends Model
  27. {
  28. //
  29. protected $table = 'game_cyc_answers';
  30. protected $dateFormat = 'U';
  31. protected $fillable = ['question_id', 'keyword', 'content'];
  32. protected $casts = [
  33. 'questions' => 'array',
  34. 'answers' => 'array'
  35. ];
  36. }