✨ Program member benifits
This commit is contained in:
@ -11,6 +11,15 @@ type ProgramPrice struct {
|
||||
Amount float64 `json:"amount"`
|
||||
}
|
||||
|
||||
type ProgramBadge struct {
|
||||
Type string `json:"type"`
|
||||
Metadata map[string]any `json:"metadata"`
|
||||
}
|
||||
|
||||
type ProgramGroup struct {
|
||||
ID uint `json:"id"`
|
||||
}
|
||||
|
||||
type Program struct {
|
||||
BaseModel
|
||||
|
||||
@ -19,6 +28,8 @@ type Program struct {
|
||||
Alias string `json:"alias" gorm:"uniqueIndex"`
|
||||
ExpRequirement int64 `json:"exp_requirement"`
|
||||
Price datatypes.JSONType[ProgramPrice] `json:"price"`
|
||||
Badge datatypes.JSONType[ProgramBadge] `json:"badge"`
|
||||
Group datatypes.JSONType[ProgramGroup] `json:"group"`
|
||||
Appearance datatypes.JSONMap `json:"appearance"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user