<?php

namespace App\Models;

use App\Traits\Multitenantable;
use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;

class SyncDelete extends Model
{
    use Multitenantable;

    protected $fillable = [
        'tenant_id',
        'table_name',
        'record_uuid',
        'created_at'
    ];

    // Matikan updated_at karena kita hanya butuh created_at untuk log
    const UPDATED_AT = null;

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
