entity

package
v0.0.0-...-be5a897 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 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 Wallet

type Wallet struct {
	Id            uint64          `json:"id" gorm:"primarykey"`
	UserId        uint64          `json:"userId" gorm:"not null;uniqueIndex:idx_userid_name_deletedat" validate:"required"`
	Name          string          `json:"name" gorm:"not null;uniqueIndex:idx_userid_name_deletedat" validate:"required,min=3,max=128"`
	Description   string          `json:"description" gorm:"null" validate:"max=256"`
	Currency      string          `json:"currency" gorm:"not null" validate:"required,len=3"`
	InitialAmount decimal.Decimal `json:"initialAmount" gorm:"not null" validate:"required"`
	CreatedAt     time.Time       `json:"createdAt" gorm:"<-:create"`
	UpdatedAt     time.Time       `json:"updatedAt"`
	DeletedAt     gorm.DeletedAt  `json:"-" gorm:"index;uniqueIndex:idx_userid_name_deletedat"`
}

func (Wallet) TableName

func (Wallet) TableName() string

Jump to

Keyboard shortcuts

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