- Kompletna Go implementacija licencnog servera (19 Go fajlova) - Klijentski API: activate, deactivate, validate - Admin API: CRUD licence, stats, audit log - Admin dashboard: htmx + Go templates - RSA-2048 potpisivanje licencnih podataka - Rate limiting i API key autentifikacija - MySQL migracije i seed podaci (ESIR, ARV, LIGHT_TICKET) - Unit testovi: keygen, crypto, model, middleware (24 testa) - Dokumentacija: SPEC.md, ARCHITECTURE.md, SETUP.md, API.md, TESTING.md, README.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
665 B
Go
21 lines
665 B
Go
package model
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
type Activation struct {
|
|
ID int64 `json:"id"`
|
|
LicenseID int64 `json:"license_id"`
|
|
MachineFingerprint string `json:"machine_fingerprint"`
|
|
Hostname string `json:"hostname"`
|
|
OSInfo string `json:"os_info"`
|
|
AppVersion string `json:"app_version"`
|
|
IPAddress string `json:"ip_address"`
|
|
ActivatedAt time.Time `json:"activated_at"`
|
|
DeactivatedAt sql.NullTime `json:"deactivated_at"`
|
|
IsActive bool `json:"is_active"`
|
|
LastSeenAt time.Time `json:"last_seen_at"`
|
|
}
|