add project
This commit is contained in:
36
src/lib/types.ts
Normal file
36
src/lib/types.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
export interface Game {
|
||||
id: number;
|
||||
slug: string;
|
||||
title: string;
|
||||
library: 'public' | 'private';
|
||||
folder_path: string;
|
||||
description: string;
|
||||
genre: string;
|
||||
has_cover: number;
|
||||
has_wide: number;
|
||||
last_scanned_at: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface GameFile {
|
||||
id: number;
|
||||
game_id: number;
|
||||
filename: string;
|
||||
rel_path: string;
|
||||
platform: 'windows' | 'macos' | 'linux' | 'unknown';
|
||||
is_dir: number;
|
||||
file_size: number;
|
||||
}
|
||||
|
||||
export interface Screenshot {
|
||||
id: number;
|
||||
game_id: number;
|
||||
filename: string;
|
||||
rel_path: string;
|
||||
sort_order: number;
|
||||
}
|
||||
|
||||
export interface Tag {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user