<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class PricingRuleDetail extends Model
{
    protected $table = 'pricing_rule_details';

    protected $fillable = ['id', 'pricing_rule_id', 'name', 'code', 'price', 'created_at', 'updated_at'];

    public function options() {
        return $this->hasMany(PricingRuleDetailItem::class, 'pricing_rule_detail_id', 'id');
    }
}

