Initial Commit

This commit is contained in:
Daniel Haus 2026-03-06 16:05:24 +03:00
commit 4dbdc7d793
18 changed files with 2384 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from enum import Enum
from dataclasses import dataclass
@dataclass
class Role:
"""
Represents a user role with a hierarchical access level.
Attributes:
name: Human-readable role name.
level: Numeric access level used for permission checks.
"""
name: str
level: int
class RoleLevel(Enum):
"""
Predefined access levels for common roles.
Use these constants when populating the permission table
or comparing role levels in application logic.
"""
GUEST = 0
CLIENT = 25
EMPLOYEE = 50
MANAGER = 75
ADMIN = 100