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"` }
Click to show internal directories.
Click to hide internal directories.