<?php

namespace App\Models;

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

class Additional extends Model
{
    use HasFactory;

    protected $table = 'additionals';
    protected $primaryKey = 'id_additional';

    protected $fillable = [
        'nama',
        'harga',
    ];
    public function detailAdditional()
    {
        return $this->hasMany(DetailAdditional::class, 'id_additional');
    }
}
