<?php

namespace App\Models;

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

class BankAccount extends Model
{
    use HasFactory;

    protected $table = 'bank_accounts';

    protected $fillable = [
        'user_id',   // ✅ WAJIB DITAMBAHKAN
        'method',
        'nama_rek',
        'bank',
        'no_rek',
    ];

    // Relationship with User
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}