model

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gallery struct {
	UUID            string `sql:"primary_key"`
	LibraryID       int32
	ArchivePath     string
	Title           string
	TitleNative     *string
	TitleTranslated *string
	Category        *string
	Series          *string
	Released        *string
	Language        *string
	Translated      *bool
	Nsfw            bool
	Hidden          bool
	ImageCount      *int32
	ArchiveSize     *int32
	ArchiveHash     *string
	Thumbnail       *string
	CreatedAt       time.Time
	UpdatedAt       time.Time
	Deleted         bool
	PageThumbnails  *int32
}

type GalleryPref

type GalleryPref struct {
	UserUUID      string `sql:"primary_key"`
	GalleryUUID   string `sql:"primary_key"`
	Progress      int32
	FavoriteGroup *string
	UpdatedAt     time.Time
}

type GalleryTag

type GalleryTag struct {
	GalleryUUID string
	TagID       int32
}

type GooseDbVersion

type GooseDbVersion struct {
	ID        *int32 `sql:"primary_key"`
	VersionID int32
	IsApplied int32
	Tstamp    *time.Time
}

type Library

type Library struct {
	ID     int32 `sql:"primary_key"`
	Path   string
	Layout string
}

type Reference

type Reference struct {
	GalleryUUID  string `sql:"primary_key"`
	MetaInternal bool
	MetaPath     *string
	MetaMatch    *int32
	Urls         *string
	ExhGid       *int32
	ExhToken     *string
	AnilistID    *int32
}

type Session

type Session struct {
	ID        string `sql:"primary_key"`
	UserUUID  string `sql:"primary_key"`
	Name      *string
	ExpiresAt *time.Time
}

type Tag

type Tag struct {
	ID        int32 `sql:"primary_key"`
	Namespace string
	Name      string
}

type User

type User struct {
	UUID      string
	Username  string
	Password  []byte
	Salt      []byte
	Role      int32
	BcryptPw  *string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL