<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ProductConstruction extends BaseModel
{
    protected $table = 'product_constructions';

    protected $fillable = ['id', 'product_id', 'product_option_detail_id', 'name', 'price', 'created_at', 'updated_at'];

    public function option_detail() {
        return $this->belongsTo(ProductOptionDetail::class, 'product_option_detail_id', 'id')->with('option');
    }
}
