<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
// use App\Models\Weight;
use App\Models\Gownsize;
use App\Models\Pavadaisattai;



class product_variation extends Model
{
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $table = 'product_variation';
    protected $primaryKey = 'variation_id';
    protected $fillable = [
        'gown_size_id',
        'product_id',
        'product_actual_price',
        'product_discount_price',
        'pavadai_size_id',
        'product_discount_percentage',
        'product_discount_value',
    ];
    protected $hidden = ['deleted_at', 'created_at', 'updated_at'];
 
    public function gownlist(){
        return $this->hasMany(Gownsize::class, 'gown_size_id', 'gown_size_id');
    }
    public function pavadailist(){
        return $this->hasMany(Pavadaisattai::class, 'pavadai_size_id', 'pavadai_size_id');

    }
 
 
 
 
 }
