This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ApplicationVersion struct {
|
||||
Id int64 `gorm:"primaryKey"`
|
||||
Platform string `gorm:"type:varchar(50);not null;comment:Platform (ios, android, windows, mac, linux, harmony)"`
|
||||
Version string `gorm:"type:varchar(50);not null;comment:Version Number"`
|
||||
MinVersion string `gorm:"type:varchar(50);default:null;comment:Minimum Force Update Version"`
|
||||
ForceUpdate bool `gorm:"type:tinyint(1);not null;default:0;comment:Force Update"`
|
||||
Url string `gorm:"type:varchar(255);not null;comment:Download URL"`
|
||||
Description json.RawMessage `gorm:"type:json;default:null;comment:Update Description (JSON for multi-language)"`
|
||||
IsDefault bool `gorm:"type:tinyint(1);not null;default:0;comment:Is Default Version"`
|
||||
IsInReview bool `gorm:"type:tinyint(1);not null;default:0;comment:Is In Review"`
|
||||
CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
|
||||
UpdatedAt time.Time `gorm:"comment:Update Time"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
}
|
||||
|
||||
func (ApplicationVersion) TableName() string {
|
||||
return "application_versions"
|
||||
}
|
||||
Reference in New Issue
Block a user