shanshanzhong 1d81df6664
Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
add:添加短链接服务
2026-01-24 00:32:08 -08:00

28 lines
1.2 KiB
Go

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"
}