<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Produk extends Model
{
    protected $table = 'produk';
    
    protected $fillable = [
        'nama',
        'slug',
        'deskripsi',
        'harga',
        'stok',
        'kategori',
        'gambar',
        'penjual',
        'kontak_penjual',
        'status',
    ];

    protected $casts = [
        'gambar' => 'array',
        'harga' => 'decimal:2',
    ];
}
