2022-06-29 21:26:05 -04:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
|
|
|
|
type GodotVersion struct {
|
|
|
|
gorm.Model
|
2023-02-12 02:49:33 -03:00
|
|
|
ID uint64 `json:"ID,omitempty" gorm:"primaryKey"`
|
|
|
|
Major uint8 `json:"major,omitempty" gorm:"not null"`
|
2022-06-29 21:26:05 -04:00
|
|
|
Minor uint8 `json:"minor" gorm:"not null"`
|
|
|
|
Patch uint8 `json:"patch" gorm:"not null"`
|
2023-02-12 02:49:33 -03:00
|
|
|
Hex uint64 `json:"hex,omitempty" gorm:"not null"`
|
|
|
|
Status string `json:"status,omitempty" gorm:"not null"`
|
|
|
|
Build string `json:"build,omitempty" gorm:"not null"`
|
|
|
|
Year uint16 `json:"year,omitempty" gorm:"not null"`
|
|
|
|
Hash string `json:"hash,omitempty" gorm:"unique;size:40;not null"`
|
|
|
|
String string `json:"string,omitempty" gorm:"unique;not null"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GodotVersionPublic struct {
|
|
|
|
GodotVersion
|
|
|
|
CreatedAt bool `json:"CreatedAt,omitempty"`
|
|
|
|
UpdatedAt bool `json:"UpdatedAt,omitempty"`
|
|
|
|
DeletedAt bool `json:"DeletedAt,omitempty"`
|
2022-06-29 21:26:05 -04:00
|
|
|
}
|