mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
Adds the MemoryCard/MemoryCardVersion models and migration, a database handler, and the /api/memory-cards endpoints for creating, renaming, sharing, downloading and uploading a card. Cards are scoped to a user and emulator rather than a rom, since one card holds every game's saves. Also streams zip entries when hashing so a compression bomb cannot exhaust memory, and adds a CLI helper for importing an existing card.
22 lines
581 B
TypeScript
22 lines
581 B
TypeScript
/* generated using openapi-typescript-codegen -- do not edit */
|
|
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* A card's identity. Its data lives in `versions`; the list views return
|
|
* the card without them (fetch history via the versions route) so the schema
|
|
* never touches the lazy="raise" relationship.
|
|
*/
|
|
export type MemoryCardSchema = {
|
|
id: number;
|
|
user_id: number;
|
|
emulator: string;
|
|
platform_id?: (number | null);
|
|
name: string;
|
|
slot: number;
|
|
is_public?: boolean;
|
|
created_at: string;
|
|
updated_at: string;
|
|
};
|
|
|