# app/utils/constants.py

class UserRole:
    SUPER_ADMIN = 'super_admin' # 超级管理员 (IRIS)
    SUPERVISOR = 'supervisor'   # 主管
    FINANCE = 'finance'         # 财务
    WAREHOUSE_MGR = 'warehouse_manager' # 库管
    INBOUND = 'inbound'         # 入库员
    OUTBOUND = 'outbound'       # 出库员
    PURCHASER = 'purchaser'     # 采购员
    SALES = 'sales'             # 销售

    # 角色中文映射（用于前端展示或日志）
    ROLE_MAP = {
        SUPER_ADMIN: '超级管理员',
        SUPERVISOR: '主管',
        FINANCE: '财务',
        WAREHOUSE_MGR: '库管',
        INBOUND: '入库员',
        OUTBOUND: '出库员',
        PURCHASER: '采购员',
        SALES: '销售'
    }