<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class CsatSurvey extends Model
{
    protected $fillable = ['ticket_id','client_id','token','rating','feedback','sent_at','answered_at','channel'];
    protected $casts    = ['sent_at'=>'datetime','answered_at'=>'datetime'];

    public function ticket() { return $this->belongsTo(Ticket::class); }
    public function client() { return $this->belongsTo(Client::class); }
}
