<?php

namespace App\Models;

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

class AddCard extends Model
{
    use HasFactory;

    protected $table = 'add_card';
    public $timestamps = false;
    protected $primaryKey = 'id';

    protected $fillable = [
        'buyer',
        'num_card',
        'seller',
        'date',
    ];

    public function sellerUser()
    {
        return $this->belongsTo(User::class, 'seller', 'msnv');
    }
}
