<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserDomain extends Model
{
    
    protected $table = 'user_domains';

    protected $fillable = [
        'user_id', 
        'domain_name', 
        'website_url', 
        'hosting_ip', 
        'monthly_price', 
        'expiry_date', 
        'status'
    ];

    
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
