<?php

namespace App\Models;

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

class Order extends Model{
    use HasFactory;
    protected $table = 'orders';
    
    protected $fillable = [
        // 'order_id',
        // 'branch_id',
        // 'obf_id',
        // 'status',
        // 'created_by',
        // 'created_at',
        // 'updated_by',
        // 'updated_at'
        'inventory_id',
        'order_id',
        'obf_id',
        'branch_id',
        'pdi_reject_reason',
        'dealer_id',
        'dealer_gst',
        'dealer_pan_number',
        'bill_to',
        'address',
        'ship_to',
        'finance_name',
        'customer_gst',
        'customer_id',
        'invoice_no',
        'invoice_date',
        'phone_no',
        'pan_number',
        'place_of_supply',
        'product_name',
        'on_road_price',
        'discount_type',
        'discount',
        'selling_price',
        'igst',
        'cgst',
        'sgst',
        'compensation_cess',
        'total',
        'tcs_tax',
        'grand_total',
        'vin_number',
        'chassis_number',
        'engine_number',
        'key_number',
        'hsn_code',
        'status',
        'remark',
        'created_at',
        'updated_at',
        'created_by',
        'updated_by'
    ];
}
