package
Version:
v0.0.0-...-e3d7e6a
Opens a new window with list of versions in this module.
Published: Feb 17, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Book struct {
gorm.Model
Title string
Authors []Author `gorm:"many2many:book_authors;"`
Genres []Genre `gorm:"many2many:book_genres;"`
}
type Subscribe struct {
gorm.Model
SubscriberID uint
Books []Book `gorm:"many2many:subscribe_book;"`
Authors []Author `gorm:"many2many:subscribe_author;"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.