:sparles: Badges

This commit is contained in:
2024-06-02 20:45:56 +08:00
parent 61eff6ea49
commit 1c36b429ea
9 changed files with 108 additions and 172 deletions

View File

@ -1,10 +1,11 @@
package models
import "gorm.io/datatypes"
type Badge struct {
BaseModel
Type string `json:"type"`
Label string `json:"label"`
Color string `json:"color"`
AccountID uint `json:"account_id"`
Type string `json:"type"`
Metadata datatypes.JSONMap `json:"metadata"`
AccountID uint `json:"account_id"`
}