export interface PolicyData { id: number policyType: 'privacy_policy' | 'terms_of_service' version: string content: string effectiveDate: string isCurrent: boolean createdAt: string } export interface PolicyVersions { privacy_policy: PolicyData terms_of_service: PolicyData } export interface ConsentData { privacy: boolean terms: boolean marketing: boolean } export interface ConsentRecord { id: number userId: number consentType: 'privacy_policy' | 'terms_of_service' | 'marketing' | 'optional' consentStatus: boolean policyVersion: string consentedAt: string ipAddress?: string userAgent?: string revokedAt?: string revokeReason?: string } export interface ConsentLogRecord { id: number userId: number consentType: 'privacy_policy' | 'terms_of_service' | 'marketing' | 'optional' action: 'consent' | 'revoke' | 'update' oldStatus?: boolean newStatus: boolean policyVersion: string ipAddress?: string userAgent?: string actionTimestamp: string additionalData?: any }