<?php

namespace App\Models;

/**
 * App\Models\ComplaintModel
 *
 * @property int $id
 * @property int $uid 举报人
 * @property int $be_uid 被举报人
 * @property string $type 举报类型
 * @property int $value 类型的值
 * @property string $title 标题
 * @property array $images 图片
 * @property string $content 内容
 * @property int $reply_at 回复时间
 * @property string $reply_content 回复内容
 * @property int $state 处理方式：0,待处理；1，仅回复；2，联系客服；3,退换小花；4,修改为不满意
 * @property \Illuminate\Support\Carbon $created_at 创建时间
 * @property \Illuminate\Support\Carbon $updated_at 修改时间
 * @property string $phone 手机号
 * @property array $search 搜索
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereBeUid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereImages($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereReplyAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereReplyContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereSearch($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereState($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereUid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ComplaintModel whereValue($value)
 * @mixin \Eloquent
 */
class ComplaintModel extends Model
{
    protected $table = 'kdgx_fpdx_complaints';

    protected $casts = [
        'images' => 'array',
        'search' => 'array',
    ];

    protected $fillable = [
        'uid',
        'be_uid',
        'type',
        'value',
        'title',
        'content',
        'images',
        'reply_at',
        'replay_content',
        'phone',
        'search'
    ];

    protected $dateFormat = 'U';
}
