Refactor user lists

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 03:38:55 +00:00
parent 7df81a6ba0
commit 8ec0d59e75
7 changed files with 1041 additions and 0 deletions

View File

@@ -200,4 +200,29 @@ export interface Review {
moderation_status: 'pending' | 'approved' | 'rejected' | 'flagged';
created_at: string;
updated_at: string;
}
export interface UserTopList {
id: string;
user_id: string;
title: string;
description?: string;
list_type: 'parks' | 'rides' | 'coasters' | 'companies' | 'mixed';
is_public: boolean;
created_at: string;
updated_at: string;
items?: UserTopListItem[]; // New relational data
}
export interface UserTopListItem {
id: string;
list_id: string;
entity_type: 'park' | 'ride' | 'company';
entity_id: string;
position: number;
notes?: string;
created_at: string;
updated_at: string;
// Populated via joins
entity?: Park | Ride | Company;
}