Remove legacy API files: deleted analytics, auth, collections, ratings, scripts, users, and database schema files to streamline the codebase and eliminate unused functionality.

This commit is contained in:
2025-08-15 23:32:10 +01:00
parent 76a0656ab4
commit 6a5bc8d194
11 changed files with 0 additions and 0 deletions

View File

@ -1,45 +0,0 @@
// Mock API implementations for demo purposes
// In a real app, these would be actual database operations
import { generateId } from './index';
// For demo purposes, we'll use these mock functions instead of real database calls
// This avoids the MySQL-specific .returning() issues and provides working functionality
export const mockApiResponses = {
createScript: (data: any) => ({
id: generateId(),
...data,
isApproved: false,
isPublic: true,
viewCount: 0,
downloadCount: 0,
rating: 0,
ratingCount: 0,
createdAt: new Date(),
updatedAt: new Date(),
}),
createUser: (data: any) => ({
id: generateId(),
...data,
isAdmin: false,
isModerator: false,
createdAt: new Date(),
updatedAt: new Date(),
}),
createRating: (data: any) => ({
id: generateId(),
...data,
createdAt: new Date(),
updatedAt: new Date(),
}),
createCollection: (data: any) => ({
id: generateId(),
...data,
createdAt: new Date(),
updatedAt: new Date(),
}),
};