feat: Database Query Cache

This commit is contained in:
Samuel
2023-03-18 04:11:48 +01:00
parent 6c009c3b88
commit 366c4935a4
38 changed files with 444 additions and 126 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
*/
import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm";
import { BaseClass } from "./BaseClass";
import { EntityCache } from "../cache";
import { Channel } from "./Channel";
import { Guild } from "./Guild";
import { User } from "./User";
@@ -25,7 +25,7 @@ import { Member } from "./Member";
//https://gist.github.com/vassjozsef/e482c65df6ee1facaace8b3c9ff66145#file-voice_state-ex
@Entity("voice_states")
export class VoiceState extends BaseClass {
export class VoiceState extends EntityCache {
@Column({ nullable: true })
@RelationId((voice_state: VoiceState) => voice_state.guild)
guild_id: string;