<?php

namespace TPS\Balance\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use TPS\Shop\Contracts\Balance as BalanceContract;
use Webkul\Customer\Models\CustomerProxy;

class Balance  extends Model implements BalanceContract
{
    public $timestamps = true;

    protected $fillable = [
        'customer_id',
        'type',
        'amount',
    ];

    public function customer() : BelongsTo{
        return $this->belongsTo(CustomerProxy::modelClass());
    }

    //todo belongs to transaction??
}