Files
goyomi/internal/db/queries/models.go
T
2026-05-11 06:48:23 +00:00

67 lines
2.8 KiB
Go
Executable File

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.31.1
package queries
type Chapter struct {
ID int32 `db:"id" json:"id"`
MangaID int32 `db:"manga_id" json:"manga_id"`
Url string `db:"url" json:"url"`
Name string `db:"name" json:"name"`
DateUpload int64 `db:"date_upload" json:"date_upload"`
ChapterNumber float32 `db:"chapter_number" json:"chapter_number"`
Scanlator *string `db:"scanlator" json:"scanlator"`
SourceOrder int32 `db:"source_order" json:"source_order"`
IsRead bool `db:"is_read" json:"is_read"`
IsBookmarked bool `db:"is_bookmarked" json:"is_bookmarked"`
LastPageRead int32 `db:"last_page_read" json:"last_page_read"`
LastReadAt int64 `db:"last_read_at" json:"last_read_at"`
FetchedAt int64 `db:"fetched_at" json:"fetched_at"`
RealUrl *string `db:"real_url" json:"real_url"`
IsDownloaded bool `db:"is_downloaded" json:"is_downloaded"`
PageCount int32 `db:"page_count" json:"page_count"`
}
type Manga struct {
ID int32 `db:"id" json:"id"`
SourceID int64 `db:"source_id" json:"source_id"`
Url string `db:"url" json:"url"`
Title string `db:"title" json:"title"`
Initialized bool `db:"initialized" json:"initialized"`
Artist *string `db:"artist" json:"artist"`
Author *string `db:"author" json:"author"`
Description *string `db:"description" json:"description"`
Genre *string `db:"genre" json:"genre"`
Status int32 `db:"status" json:"status"`
ThumbnailUrl *string `db:"thumbnail_url" json:"thumbnail_url"`
ThumbnailLastFetched int64 `db:"thumbnail_last_fetched" json:"thumbnail_last_fetched"`
InLibrary bool `db:"in_library" json:"in_library"`
InLibraryAt int64 `db:"in_library_at" json:"in_library_at"`
RealUrl *string `db:"real_url" json:"real_url"`
LastFetchedAt int64 `db:"last_fetched_at" json:"last_fetched_at"`
ChaptersLastFetchedAt int64 `db:"chapters_last_fetched_at" json:"chapters_last_fetched_at"`
UpdateStrategy string `db:"update_strategy" json:"update_strategy"`
}
type Page struct {
ID int32 `db:"id" json:"id"`
ChapterID int32 `db:"chapter_id" json:"chapter_id"`
Index int32 `db:"index" json:"index"`
Url string `db:"url" json:"url"`
ImageUrl *string `db:"image_url" json:"image_url"`
}
type Source struct {
ID int64 `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Lang string `db:"lang" json:"lang"`
IsNsfw bool `db:"is_nsfw" json:"is_nsfw"`
}
type SourceMetum struct {
SourceID int64 `db:"source_id" json:"source_id"`
Key string `db:"key" json:"key"`
Value string `db:"value" json:"value"`
}