Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFGray committed Sep 6, 2024
1 parent 2d7c7b4 commit fd43364
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/db.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ export interface Guilds {
settings: string | null;
}

export interface MessageStats {
author_id: string;
channel_category: string | null;
channel_id: string;
char_count: number;
guild_id: string;
message_id: string | null;
react_count: Generated<number>;
recipient_id: string | null;
sent_at: string;
word_count: number;
}

export interface Sessions {
data: string | null;
expires: string | null;
Expand All @@ -24,6 +37,7 @@ export interface Users {

export interface DB {
guilds: Guilds;
message_stats: MessageStats;
sessions: Sessions;
users: Users;
}

0 comments on commit fd43364

Please sign in to comment.