<?php

namespace App\Models\Auth;

use Illuminate\Database\Eloquent\Model;

class UserRole extends Model
{
    /**
     * Database Table
     */
    protected $table = 'user_roles';

    //Primary Key
    protected $primaryKey = 'character_id';
    public $incrementing = false;
    public $timestamps = true;

    /**
     * Attributes which are mass assignable
     * 
     * @var array
     */
    protected $fillable = [
        'role',
        'rank',
    ];

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