<?php

namespace App\Models\Deed;

use App\Models\Model;

/**
 * App\Models\Deed\InvitationCardModel
 *
 * @property int $id
 * @property \Illuminate\Support\Carbon $created_at 创建时间
 * @property \Illuminate\Support\Carbon $updated_at 修改时间
 * @property int $uid 用户
 * @property int $invite_uid 邀请用户
 * @property int $type 活动类型0:聊天|1:72h|2:王者开黑|3:吃鸡开黑|4:晚安
 * @property int $read 邀请函状态:0未读|1已读|2忽略
 * @property int $send_read 发送者阅读状态
 * @property int $state 状态-1拒绝|0未处理|1同意
 * @property int $notice_type 0=开关为关不发送
 * 1=公众号客服消息
 * 2=公众号模板消息
 * 3=短信
 * -1=尝试发送但不满足条件或发送失败
 * @property int $expired_at 过期时间
 * @property int $expired_notice 过期通知时间
 * @property int $receive_at 接受时间
 * @property string|null $task_photo_answer 爆照任务答案
 * @property object|null $task_question_answer 心动考验问题[{问题:{问题形式,问题,答案形式,答案},模版id}]
 * @property int $question_type 问题类型:
 * 0=无;
 * 1=心动爆照;
 * 2=问答;
 * 3=接唱;
 * @property string|null $question_answer 问题回答
 * @property int $question_id 问题id
 * @property string|null $say_hello 打招呼
 * @property string|null $kk
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereExpiredAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereExpiredNotice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereInviteUid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereKk($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereNoticeType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereQuestionAnswer($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereQuestionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereQuestionType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereRead($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereReceiveAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereSayHello($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereSendRead($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereState($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereTaskPhotoAnswer($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereTaskQuestionAnswer($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereUid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class InvitationCardModel extends Model
{
    protected $table = 'kdgx_fpdx_invitation_card';

    public $dateFormat = 'U';

    protected $casts = [
        'task_question_answer' => 'object',
    ];


    protected $fillable = [
        'id',
        'uid',
        'invite_uid',
        'type',
        'read',
        'send_read',
        'state',
        'notice_type',
        'expired_notice',
        'expired_at',
        'receive_at',
        'question_type',
        'question_answer',
        'question_id',
        'say_hello',
        'kk',
        'paint_id',
        'request_content',
        'response_content'
    ];

    protected $hidden = ['task_photo_answer', 'task_question_answer'];
}
