Skip to content

Commit

Permalink
haha
Browse files Browse the repository at this point in the history
  • Loading branch information
yorunoken committed Apr 17, 2024
1 parent 8771ef3 commit d81d6f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions src/types/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,33 @@ export enum EmbedScoreType {
Owo = "owobot"
}

interface Database {
id: string | number;
length?: number;
}

export interface DatabaseUser extends Database {
export interface DatabaseUser {
id: string;
banchoId: string | null;
score_embeds: number | null;
embed_type: EmbedScoreType | null;
mode: string | null;
}

export interface DatabaseGuild extends Database {
export interface DatabaseGuild {
id: string;
name: string;
owner_id: string;
joined_at: string;
prefixes: Array<string> | null;
}

export interface DatabaseMap extends Database {
export interface DatabaseMap {
id: string;
data: string;
}

export interface DatabaseCommands extends Database {
export interface DatabaseCommands {
id: string;
count: string | null;
}

export interface DatabaseScores extends Database {
export interface DatabaseScores {
id: number;
user_id: number;
map_id: number;
Expand All @@ -57,8 +52,8 @@ export interface DatabaseScores extends Database {
ended_at: string;
}

export interface DatabaseScoresPp extends Database {
score_id: number;
export interface DatabaseScoresPp {
id: number;
pp: number;
pp_fc: number;
pp_perfect: number;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/initalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function initializeDatabase(): void {
{
name: "osu_scores_pp",
columns: [
"score_id INTEGER PRIMARY KEY",
"id INTEGER PRIMARY KEY",
"pp INTEGER",
"pp_fc INTEGER",
"pp_perfect INTEGER"
Expand Down

0 comments on commit d81d6f3

Please sign in to comment.