import type { Tenant } from './tenant'

export interface Lease {
  id: string
  unitId: string
  tenant: Tenant
  rentPerSqm: number             // CHF/m²/Jahr
  startDate: string              // ISO date
  endDate: string                // ISO date
  contractDurationYears?: number
  breakoutOption?: boolean
  breakoutOptionDate?: string
  status: 'ACTIVE' | 'FUTURE' | 'EXPIRED'
  sourceSystem?: 'SAP_REFX' | 'GARAIO_REM' | 'MANUAL' | string
  sourceId?: string              // ID in source ERP
  importedAt?: string
  lastUpdatedAt?: string
  contractDocumentUrl?: string
  contractDocumentName?: string
}
