models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bill

type Bill struct {
	dbx.Metadata

	// 金额
	Amount decimal.Decimal `json:"amount" gorm:"type:decimal(20,4);not null;default:0;comment:金额"`
}

type User

type User struct {
	dbx.Metadata

	// 用户名
	Name string `json:"name" gorm:"type:varchar(32);not null;comment:用户名"`
	// 邮箱
	Email string `json:"email" gorm:"type:varchar(64);not null;comment:邮箱"`
	// 额外信息
	Extra datatype.JSON `json:"extra" gorm:"comment:额外信息"`
}

Jump to

Keyboard shortcuts

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