prorm API Reference
    Preparing search index...

    Interface TenantContext

    interface TenantContext {
        tenantId: string;
        sessionId: string;
        userId?: string;
        roles?: string[];
        sessionCreatedAt?: Date;
        lastActivityAt?: Date;
        metadata?: Record<string, any>;
    }
    Index
    tenantId: string

    The tenant identifier

    sessionId: string

    The current session ID

    userId?: string

    The user ID

    roles?: string[]

    User roles within this tenant

    sessionCreatedAt?: Date

    Session creation timestamp

    lastActivityAt?: Date

    Last activity timestamp

    metadata?: Record<string, any>

    Custom tenant metadata