dbots/internal/db/models.go
2026-04-17 22:05:05 +02:00

44 lines
1.2 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package db
import (
"time"
)
type Bot struct {
ID string `json:"id"`
Username string `json:"username"`
Avatar *string `json:"avatar"`
Overview *string `json:"overview"`
Description *string `json:"description"`
IsSlash bool `json:"is_slash"`
InstallContext InstallContext `json:"install_context"`
GuildCount *int32 `json:"guild_count"`
InstallCount *int32 `json:"install_count"`
ImportedFrom *string `json:"imported_from"`
Prefix *string `json:"prefix"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Status BotStatus `json:"status"`
MainOwnerID *string `json:"main_owner_id"`
}
type BotCoOwner struct {
BotID string `json:"bot_id"`
UserID string `json:"user_id"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Biography *string `json:"biography"`
}
type Vote struct {
UserID string `json:"user_id"`
BotID string `json:"bot_id"`
VotedAt time.Time `json:"voted_at"`
}