<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\TransactionSellLine; // Assuming TransactionSellLine is in the same namespace

class Product extends Model
{
    use HasFactory;

    protected $fillable = ['name', 'sku', 'category', 'imei', 'price', 'stock_quantity', 'is_used'];

    public function transactionSellLines()
    {
        return $this->hasMany(TransactionSellLine::class);
    }
}
