<?php

namespace App\Models\Member;

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


class MemAuthInfo extends Model
{
    protected $table = 'mem_auth_info';
    protected $primaryKey = 'mem_no';
    public $incrementing = false;
    protected $keyType = 'int';
    public $timestamps = false;

    protected $guarded = [];

    protected $casts = [
        'auth_info' => 'array',
    ];

    public function member(): BelongsTo
    {
        return $this->belongsTo(MemInfo::class, 'mem_no', 'mem_no');
    }
}
