Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilDatabase error = errors.New("database connection is nil")
)
Functions ¶
func Initialize ¶
Types ¶
type Author ¶
type AuthorBook ¶
type AuthorBook struct { AuthorID UUID `gorm:"primaryKey"` BookID UUID `gorm:"primaryKey"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` }
func (AuthorBook) Create ¶
func (AuthorBook) Create(authorID, bookID UUID) (err error)
type Base ¶
type Book ¶
Click to show internal directories.
Click to hide internal directories.