model

package
v0.0.0-...-e3d7e6a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	gorm.Model
	PublicName string
}

type Book

type Book struct {
	gorm.Model
	Title   string
	Authors []Author `gorm:"many2many:book_authors;"`
	Genres  []Genre  `gorm:"many2many:book_genres;"`
}

type Genre

type Genre struct {
	gorm.Model
	Name string
}

type Subscribe

type Subscribe struct {
	gorm.Model
	SubscriberID uint
	Books        []Book   `gorm:"many2many:subscribe_book;"`
	Authors      []Author `gorm:"many2many:subscribe_author;"`
}

type Subscriber

type Subscriber struct {
	gorm.Model
	Email    string
	FullName string
}

Jump to

Keyboard shortcuts

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