customer/internal/models/currency.go

20 lines
580 B
Go
Raw Normal View History

2023-05-18 19:43:43 +00:00
package models
import "time"
type CurrencyKey = string
type CurrencyList struct {
ID string `json:"id" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Currencies []CurrencyKey `json:"currencies" bson:"currencies"`
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"`
}
const (
DefaultCurrencyListName = "currency_list"
)