model

package
v0.0.0-...-1738e17 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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 Book

type Book struct {
	ID            int    `gorm:"primaryKey;column:id_book" json:"id_book"`
	Title         string `gorm:"column:title" json:"title"`
	Author        string `gorm:"column:author" json:"author"`
	PublishedYear int    `gorm:"column:publishedyear" json:"publishedyear"`
	Genre         string `gorm:"column:genre" json:"genre"`
}

type Users

type Users struct {
	IDUser    uint      `gorm:"primaryKey;column:id_user" json:"id_user"`
	Password  string    `gorm:"column:password" json:"password"`
	Email     string    `gorm:"column:email" json:"email"`
	Role      string    `gorm:"column:role" json:"role"`
	CreatedAt time.Time `gorm:"column:created_at;autoCreateTime" json:"-"`
}

Jump to

Keyboard shortcuts

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