<?php

namespace App\Models;

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

class Buket extends Model
{
    use HasFactory;

    protected $table = 'bukets';
    protected $primaryKey = 'id_buket';

    protected $fillable = [
        'nama',
        'deskripsi',
        'request_khusus',
        'ucapan',
        'harga',
        'foto',
        'kategori', // Enum
        'ukuran',   // Enum
    ];

    public function transaksi()
    {
        return $this->hasMany(TransaksiBuket::class, 'id_buket');
    }
}
