export enum BackupTarget {
  POSTGRES = 'POSTGRES',
  MPC_POSTGRES = 'MPC_POSTGRES',
  REDIS = 'REDIS',
  KAFKA = 'KAFKA',
  ZOOKEEPER = 'ZOOKEEPER',
  MINIO = 'MINIO',
  UPLOADS = 'UPLOADS',
}

/** 备份执行顺序 */
export const BACKUP_TARGET_ORDER: BackupTarget[] = [
  BackupTarget.POSTGRES,
  BackupTarget.MPC_POSTGRES,
  BackupTarget.REDIS,
  BackupTarget.KAFKA,
  BackupTarget.ZOOKEEPER,
  BackupTarget.MINIO,
  BackupTarget.UPLOADS,
];

/** 备份目标中文名 */
export const BACKUP_TARGET_LABELS: Record<BackupTarget, string> = {
  [BackupTarget.POSTGRES]: 'PostgreSQL',
  [BackupTarget.MPC_POSTGRES]: 'MPC PostgreSQL',
  [BackupTarget.REDIS]: 'Redis',
  [BackupTarget.KAFKA]: 'Kafka',
  [BackupTarget.ZOOKEEPER]: 'ZooKeeper',
  [BackupTarget.MINIO]: 'MinIO',
  [BackupTarget.UPLOADS]: 'Uploads',
};
