models

package
v0.0.0-...-70d2f17 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 2 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 {
	ID         int64          `db:"id"`
	FirstName  string         `db:"first_name"`
	MiddleName sql.NullString `db:"middle_name"`
	LastName   sql.NullString `db:"last_name"`
	CreatedAt  time.Time      `db:"created_at"`
}

type Book

type Book struct {
	ID         int64          `db:"id"`
	Title      string         `db:"title"`
	Year       sql.NullInt64  `db:"year"`
	ISBN       sql.NullString `db:"isbn"`
	TotalPages int64          `db:"total_pages"`
	CreatedAt  time.Time      `db:"created_at"`
}

type User

type User struct {
	ID        int64     `db:"id"`
	Username  string    `db:"username"`
	Password  string    `db:"password"`
	CreatedAt time.Time `db:"created_at"`
}

Jump to

Keyboard shortcuts

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