feat(*): Complete MongoDB to Supabase migration cleanup

This commit is contained in:
Josh Creek
2025-07-26 23:13:11 +01:00
parent c063e9d2cd
commit 852c6c3f34
12 changed files with 18 additions and 366 deletions
+10 -10
View File
@@ -1,13 +1,13 @@
import mongoose, { Schema, Document } from 'mongoose';
export interface RegionGameMapping extends Document {
// Supabase-based RegionGameMapping interface
export interface RegionGameMapping {
id?: number;
region: string;
games: string[];
game: string; // Note: Different from MongoDB version which had 'games' array
}
const regionGameMappingSchema = new Schema<RegionGameMapping>({
region: String,
games: Array<string>
});
export default mongoose.model<RegionGameMapping>('RegionGameMapping', regionGameMappingSchema);
// Database record type for Supabase
export interface RegionGameMappingDB {
id: number;
region: string;
game: string;
}