model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 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
	TitleShort  *string
	Released    *string
	Circle      *string
	Artists     *string
	Series      *string
	Category    *string
	Language    *string
	Translated  *bool
	ImageCount  *int32
	ArchiveSize *int32
	ArchiveHash *string
	Thumbnail   *string
	Nsfw        bool
	Hidden      bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

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 `sql:"primary_key"`
	Username  string
	Password  string
	Role      int32
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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