model

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameGame = "game"

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	ID        uint64          `gorm:"column:id;primaryKey;autoIncrement:true;comment:auto increment id" json:"id,string"` // auto increment id
	CreatedAt carbon.DateTime `gorm:"column:created_at;comment:create time" json:"createdAt"`                             // create time
	UpdatedAt carbon.DateTime `gorm:"column:updated_at;comment:update time" json:"updatedAt"`                             // update time
	Name      string          `gorm:"column:name;comment:name" json:"name"`                                               // name
}

Game mapped from table <game>

func (*Game) TableName

func (*Game) TableName() string

TableName Game's table name

Jump to

Keyboard shortcuts

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