model

package
v0.0.0-...-ffe5cf8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 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 {
	// gorm.Model
	ID        string    `json:"id" dynamo:"id" gorm:"primaryKey"`
	Title     string    `json:"title" dynamo:"title" validate:"required"`
	Author    string    `json:"author" dynamo:"author" validate:"required"`
	Year      string    `json:"year" dynamo:"year" validate:"required"`
	CreatedAt time.Time `json:"created_at" dynamo:"created_at"`
	UpdatedAt time.Time `json:"updated_at" dynamo:"updated_at"`
}

Jump to

Keyboard shortcuts

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