// src/server/shared/db/helpers.ts
// Database helper functions for common operations

// Type for table with archivedAt field
export interface SoftDeletableTable {
  archivedAt: Date | null;
}

// Helper function to check if a record is archived
export function isArchived(record: SoftDeletableTable): boolean {
  return record.archivedAt !== null;
}

// Helper function to get current timestamp for soft delete
export function getSoftDeleteTimestamp(): Date {
  return new Date();
}
