<?php

namespace App\Models\Game;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Game\CycQuestionModel
 *
 * @property int $id
 * @property string $title
 * @property int $count
 * @property int $rate
 * @property array $questions
 * @property array $answers
 * @property int $show_at 显示时间
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereAnswers($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereCount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereQuestions($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereRate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereShowAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Game\CycQuestionModel whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class CycQuestionModel extends Model
{
    //
    protected $table = 'game_cyc_questions';

    protected $dateFormat = 'U';

    protected $fillable = ['title', 'count', 'rate', 'questions', 'answers', 'show_at'];


    protected $casts = [
        'questions' => 'array',
        'answers' => 'array'
    ];
}
