-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdb.ts
More file actions
25 lines (19 loc) · 779 Bytes
/
db.ts
File metadata and controls
25 lines (19 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { PrismaClient } from "../../../node_modules/.prisma/client"
import { getFactoryResets, markFactoryReset } from "./modules/FactoryReset"
import { deleteAllGuildSettings, getGuildData } from "./modules/Guild"
import { deleteAllUserGuildData, getUserGuildData } from "./modules/Member"
import { getUserData } from "./modules/User"
export default class Database {
constructor(public db: PrismaClient) {}
// MEMBER
public getUserGuildData = getUserGuildData
public deleteAllUserGuildData = deleteAllUserGuildData
// GUILD
public getGuildData = getGuildData
public deleteAllGuildSettings = deleteAllGuildSettings
// USER
public getUserData = getUserData
// FACTORY RESET
public getFactoryResets = getFactoryResets
public markFactoryReset = markFactoryReset
}