generated from PenaSide/GolangTemplate
20 lines
580 B
Go
20 lines
580 B
Go
![]() |
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"
|
||
|
)
|