<?php

namespace App\Models;

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

class SalesTransaction extends Model
{
    use HasFactory;
    protected $table = 'sales_transaction';
    public $primaryKey = 'id';
    protected $fillable = [
        'product_id', 'warehouse_id', 'order_by', 'alamat', 'order_qty', 'biaya_tambahan', 'diskon'
    ];

    public function product()
    {
        return $this->belongsTo(MasterProduct::class);
    }
}
