<?php
namespace app\models;
use Illuminate\Database\Eloquent\Model;

class User extends Model {
    protected $table = 'user';
    protected $fillable = ['username', 'email', 'password_hash', 'role'];
    protected array $dates = ['deleted at'];

    public static function labels(): array
    {
        return [
            'username' => 'Логин',
            'email' => 'Email',
            'created_at' => 'Создан',
            'updated_at' => 'Обновлен'
        ];
    }
}