package models import "time" type Account struct { ID string `json:"id" bson:"_id,omitempty"` UserID string `json:"userId" bson:"userId"` Cart []string `json:"cart" bson:"cart"` Wallet Wallet `json:"wallet" bson:"wallet"` Name Name `json:"name" bson:"name"` Status AccountStatus `json:"status" bson:"status"` Deleted bool `json:"deleted" bson:"deleted"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` DeletedAt *time.Time `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"` } type Name struct { Lastname *string `json:"lastname,omitempty"` Name *string `json:"name,omitempty"` Orgname *string `json:"orgname,omitempty"` Secondname *string `json:"secondname,omitempty"` } type AccountStatus string const ( AccountStatusNko AccountStatus = "nko" AccountStatusNo AccountStatus = "no" AccountStatusOrg AccountStatus = "org" )