<?php

namespace App\Models;

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

class MemberCard extends Model
{
    use HasFactory;

    protected $table = 'card_member';

    protected $fillable = [
        'notrans', 'no_card', 'no_urut', 'tanggal', 'adm'
    ];

    public function memberCard () 
    {
        return $this->belongsTo(StikerTrans::class, 'no_id', 'notrans');
    }
}
