2023-10-26 12:56:36 +00:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/google/uuid"
|
|
|
|
"gorm.io/gorm"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Endpoint struct {
|
|
|
|
gorm.Model
|
|
|
|
ID uuid.UUID `gorm:"primaryKey"`
|
|
|
|
Name string
|
2023-10-26 15:26:09 +00:00
|
|
|
LastConnection *time.Time
|
|
|
|
RegisteredDate *time.Time
|
2023-10-26 16:31:57 +00:00
|
|
|
// OSInfo common.OSInfo
|
|
|
|
Enabled bool
|
|
|
|
SecretHash string
|
2023-10-26 12:56:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type PackageList struct {
|
|
|
|
gorm.Model
|
|
|
|
ID uuid.UUID `gorm:"primaryKey"`
|
|
|
|
}
|
2023-10-26 15:26:09 +00:00
|
|
|
|
|
|
|
type RegistrationToken struct {
|
|
|
|
gorm.Model
|
|
|
|
Hash string
|
|
|
|
}
|