add project

This commit is contained in:
2026-05-17 14:51:37 -04:00
parent 2f1a0d6020
commit fe8dc317b2
40 changed files with 6137 additions and 0 deletions

36
src/lib/types.ts Normal file
View 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;
}