services refactor
This commit is contained in:
13
apps/website/lib/view-models/MediaViewModel.ts
Normal file
13
apps/website/lib/view-models/MediaViewModel.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Media View Model
|
||||
*
|
||||
* Represents media information for the UI layer
|
||||
*/
|
||||
export interface MediaViewModel {
|
||||
id: string;
|
||||
url: string;
|
||||
type: 'image' | 'video' | 'document';
|
||||
category?: 'avatar' | 'team-logo' | 'league-cover' | 'race-result';
|
||||
uploadedAt: Date;
|
||||
size?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user