<?php

namespace Mtc\Modules\B2B\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class TradeAddress extends Model
{
    protected $table = 'b2b_trade_addresses';

    protected $fillable = [
        'trade_customer_id',
        'address_1',
        'address_2',
        'city',
        'postcode',
    ];

    public function tradeCustomer(): BelongsTo
    {
        return $this->belongsTo(TradeCustomer::class, 'trade_customer_id');
    }
}
