mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
36 lines
665 B
TypeScript
36 lines
665 B
TypeScript
import {
|
|
Entity,
|
|
PrimaryColumn,
|
|
Column,
|
|
CreateDateColumn,
|
|
UpdateDateColumn,
|
|
} from "typeorm";
|
|
import type { GameShop } from "@types";
|
|
|
|
@Entity("game_shop_cache")
|
|
export class GameShopCache {
|
|
@PrimaryColumn("text", { unique: true })
|
|
objectID: string;
|
|
|
|
@Column("text")
|
|
shop: GameShop;
|
|
|
|
@Column("text", { nullable: true })
|
|
serializedData: string;
|
|
|
|
/**
|
|
* @deprecated Use IndexedDB's `howLongToBeatEntries` instead
|
|
*/
|
|
@Column("text", { nullable: true })
|
|
howLongToBeatSerializedData: string;
|
|
|
|
@Column("text", { nullable: true })
|
|
language: string;
|
|
|
|
@CreateDateColumn()
|
|
createdAt: Date;
|
|
|
|
@UpdateDateColumn()
|
|
updatedAt: Date;
|
|
}
|