import { z } from "zod";
// import { METADATA_PROVIDER_TYPES } from "@/db/schema/enums";

export const METADATA_PROVIDER_TYPES = [
	"TMDB", // The Movie Database
	"IMDB", // Internet Movie Database
	"OMDB", // Open Movie Database
	"TVDB", // The TV Database
	"TRAKT", // Trakt
] as const;

// Provider ID schema matching titleProviders table
export const ProviderId = z.object({
	provider: z.enum(METADATA_PROVIDER_TYPES), // "TMDB" | "IMDB" | "OMDB" | "TVDB" | "TRAKT"
	providerId: z.string(), // The ID from the provider
});
export type ProviderId = z.infer<typeof ProviderId>;
