model

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Id    uint   `gorm:"primaryKey;autoIncrement;column:id" json:"id"`
	Color string `gorm:"size:255;not null" json:"color"`
}

type InfoModel

type InfoModel struct {
	*model.Model[*Info]
	// contains filtered or unexported fields
}

func (*InfoModel) Init

func (infoModel *InfoModel) Init(db *db.DB, c *core.Context) error

type User

type User struct {
	Id   uint   `gorm:"primaryKey;autoIncrement;column:id" json:"id"`
	Name string `gorm:"size:255;not null" json:"name"`
	Info Info   `gorm:"not null" json:"info"`
}

type UserModel

type UserModel struct {
	*model.Model[*User]
	// contains filtered or unexported fields
}

func (*UserModel) Init

func (userModel *UserModel) Init(db *db.DB, c *core.Context) error

Jump to

Keyboard shortcuts

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