import { PrismaClient } from '@prisma/client'

export interface Context {
  user: {
    id: string
    phone?: string
    organizationId?: string
    organization?: {
      id: string
      type: string
    }
  } | null
  currentUser?: {
    id: string
    organization: {
      id: string
      type: string
    }
  } | null
  admin?: {
    id: string
  } | null
  prisma: PrismaClient
  req?: {
    ip?: string | null
    get?: (header: string) => string | undefined
  } // Для системы безопасности
}
