SimpleCloudNotifier/scnserver/models/client.go

24 lines
922 B
Go
Raw Permalink Normal View History

2022-11-18 21:25:40 +01:00
package models
2023-04-21 21:45:16 +02:00
type ClientType string //@enum:type
2022-11-18 21:25:40 +01:00
const (
ClientTypeAndroid ClientType = "ANDROID"
ClientTypeIOS ClientType = "IOS"
2024-05-31 15:22:27 +02:00
ClientTypeLinux ClientType = "LINUX"
ClientTypeMacOS ClientType = "MACOS"
ClientTypeWindows ClientType = "WINDOWS"
2022-11-18 21:25:40 +01:00
)
type Client struct {
ClientID ClientID `db:"client_id" json:"client_id"`
UserID UserID `db:"user_id" json:"user_id"`
Type ClientType `db:"type" json:"type"`
FCMToken string `db:"fcm_token" json:"fcm_token"`
TimestampCreated SCNTime `db:"timestamp_created" json:"timestamp_created"`
AgentModel string `db:"agent_model" json:"agent_model"`
AgentVersion string `db:"agent_version" json:"agent_version"`
Name *string `db:"name" json:"name"`
Deleted bool `db:"deleted" json:"-"`
2022-11-18 21:25:40 +01:00
}