<?php

namespace App;

class UserAnswers extends Entity
{
    protected $fillable = [
        'users_id', 'nickname', 'score', 'detail', 'true_num', 'false_num'
    ];

    const nav = '用户答题结果';

    public const columns = [
        'id' => 'ID',
        'nickname' => '昵称',
        'true_num' => '正确题数',
        'false_num' => '错误题数',
        'score' => '得分',
    ];

    const searchFields = [
        [
            'name' =>'nickname',
            'description' => '昵称',
            'type' => 'like'
        ]
    ];

    public const createFields = [];

    public const editFields = self::createFields;

    protected $isDelete = true;
    protected $isCreate = false;
    protected $isEdit = false;
}
