<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class KarzaVideoWebhook extends Model
{
    protected $table = 'karza_video_webhooks';
    protected $primaryKey = 'id';
    public $incrementing = true;
    protected $keyType = 'int';

    public $timestamps = true;

    protected $fillable = [
        'karza_id',
        'application_id',
        'applicant_type',
        'data',
    ];

    protected $casts = [
        'id'                    => 'integer',
        'karza_id'              => 'integer',
        'application_id'        => 'integer',
        'applicant_type'        => 'integer',
        'data'                  => 'string',
        'transaction_id'        => 'string',
        'approved_by_agent'     => 'string',
        'approved_by_auditor'   => 'string',
        'created_at'            => 'datetime',
        'updated_at'            => 'datetime',
    ];
}
