2024-09-01 08:38:09 +00:00
|
|
|
package models
|
|
|
|
|
2024-11-27 14:03:09 +00:00
|
|
|
import "gorm.io/datatypes"
|
|
|
|
|
2024-11-27 13:57:10 +00:00
|
|
|
type CheckInRecord struct {
|
2024-09-01 08:38:09 +00:00
|
|
|
BaseModel
|
|
|
|
|
2024-11-27 14:03:09 +00:00
|
|
|
ResultTier int `json:"result_tier"`
|
|
|
|
ResultExperience int `json:"result_experience"`
|
|
|
|
|
|
|
|
// The result modifiers are some random tips that will show up in the client;
|
|
|
|
// This field is to use to make sure the tips will be the same when the client is reloaded.
|
|
|
|
// For now, this modifier slice will contain four random numbers from 0 to 1024.
|
|
|
|
// Client should mod this modifier by the length of total available tips.
|
|
|
|
ResultModifiers datatypes.JSONSlice[int] `json:"result_modifiers"`
|
|
|
|
|
|
|
|
Account Account `json:"account"`
|
|
|
|
AccountID uint `json:"account_id"`
|
2024-09-01 08:38:09 +00:00
|
|
|
}
|