<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class VdbInventoryLog extends Model
{
    use HasFactory;

    // Specify the table name if it doesn't follow Laravel's naming conventions
    protected $table = 'tbl_vdb_inventory_log';

    // Define the fillable attributes (columns that can be mass assigned)
    protected $fillable = [
        'total_record',
        'total_update',
        'total_insert',
        'total_delete',
        'file',
        'log_time',
        'type',
        'vendor_id',
        'start_time',
        'end_time',
    ];

    // You may also define casts if you need to handle attributes as specific types
    protected $casts = [
        'log_time' => 'datetime',
        'start_time' => 'datetime',
        'end_time' => 'datetime',
    ];
}
