entity

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	gorm.Model
	Link        string
	AlbumType   string
	Name        string
	Description string
	User        *User
	UserID      uint
	Images      []*Image
	Visibility  string
	Uuid        *uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
}

type Image

type Image struct {
	gorm.Model
	Link     string
	Filename string
	S3Key    string
	User     *User
	UserID   uint
	Album    *Album
	AlbumID  uint
	Uuid     *uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
}

type User

type User struct {
	gorm.Model
	Uuid     *uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	Username string     `gorm:"unique;not null"`
	Albums   []*Album
	Images   []*Image
}

Jump to

Keyboard shortcuts

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