<?php

namespace App\Models;

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

class SecondHandBuy extends Model
{
    use HasFactory;

    protected $table = 'second_hand_buys';

    protected $fillable = [
        'customer_name',
        'phone_number',
        'mobile_model',
        'imei',
        'buy_price',
        'condition',
        'date',
    ];

    protected $casts = [
        'buy_price' => 'decimal:2',
        'date' => 'date',
    ];
}