models

package
v0.0.0-...-54f60d9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateBooks

func MigrateBooks(db *gorm.DB) error

Types

type Book

type Book struct {
	Id        int    `json:"id" gorm:"primary key;autoIncrement"`
	Title     string `json:"title"`
	Author    string `json:"author"`
	Category  string `json:"category"`
	CoverURL  string `json:"coverURL"`
	Language  string `json:"language"`
	Likes     int    `json:"likes"`
	Borrows   int    `json:"borrows"`
	Summary   string `json:"summary"`
	Available bool   `json:"available"`
}

Jump to

Keyboard shortcuts

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