/**
 * DSFA (Datenschutz-Folgenabschaetzung) types
 *
 * Data Protection Impact Assessment sections,
 * approval workflow, and document structure.
 */

import type { DSFAStatus } from './core'

// =============================================================================
// DSFA
// =============================================================================

export interface DSFASection {
  id: string
  title: string
  content: string
  status: 'DRAFT' | 'COMPLETED'
  order: number
}

export interface DSFAApproval {
  id: string
  approver: string
  role: string
  status: 'PENDING' | 'APPROVED' | 'REJECTED'
  comment: string | null
  approvedAt: Date | null
}

export interface DSFA {
  id: string
  status: DSFAStatus
  version: number
  sections: DSFASection[]
  approvals: DSFAApproval[]
  createdAt: Date
  updatedAt: Date
}
