SimpleCloudNotifier/scnserver/models/client.go

23 lines
859 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"`
2022-11-18 21:25:40 +01:00
}