<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    protected $table = 'tbl_user';
    protected $primaryKey = 'id';
    public $timestamps = false;

    protected $fillable = [
        'email',
        'password',
        'photo',
        'token',
        'role',
        'status'
    ];

    protected $hidden = [
        'password',
        'token'
    ];

    // NO news relationship since tbl_news has no user_id field
}