2024-11-26 21:36:40 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2024-11-28 01:27:22 +00:00
|
|
|
type Status int32
|
|
|
|
|
|
|
|
const(
|
2024-11-28 01:59:29 +00:00
|
|
|
StatusPublished Status=8
|
|
|
|
StatusRejected Status=7
|
2024-11-28 01:27:22 +00:00
|
|
|
|
2024-11-28 01:59:29 +00:00
|
|
|
StatusPublishing Status=6
|
|
|
|
StatusValidated Status=5
|
|
|
|
StatusValidating Status=4
|
|
|
|
StatusAccepted Status=3
|
2024-11-28 01:27:22 +00:00
|
|
|
|
2024-11-28 01:59:29 +00:00
|
|
|
StatusChangesRequested Status=2
|
|
|
|
StatusSubmitted Status=1
|
|
|
|
StatusUnderConstruction Status=0
|
2024-11-28 01:27:22 +00:00
|
|
|
)
|
|
|
|
|
2024-11-26 23:30:58 +00:00
|
|
|
type Submission struct {
|
2024-12-10 06:27:52 +00:00
|
|
|
ID int64 `gorm:"primaryKey"`
|
2024-11-26 23:55:50 +00:00
|
|
|
DisplayName string
|
|
|
|
Creator string
|
|
|
|
GameID int32
|
2024-12-10 06:27:52 +00:00
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
2024-11-26 23:55:50 +00:00
|
|
|
Submitter int64 // UserID
|
|
|
|
AssetID int64
|
|
|
|
AssetVersion int64
|
2024-12-10 01:34:55 +00:00
|
|
|
Completed bool // Has this version of the map been completed at least once on maptest
|
2024-11-26 23:55:50 +00:00
|
|
|
TargetAssetID int64 // where to upload map fix. if the TargetAssetID is 0, it's a new map.
|
2024-11-28 01:27:22 +00:00
|
|
|
StatusID Status
|
2024-11-26 21:36:40 +00:00
|
|
|
}
|