linked device, device tasks and certs in database
This commit is contained in:
@@ -48,4 +48,5 @@ type DEviceTask struct {
|
||||
|
||||
// Optional: small attempt/lease system if you ever need retries/timeouts
|
||||
// Attempts int `gorm:"not null;default:0"`
|
||||
Device Device `gorm:"constraint:OnDelete:CASCADE;foreignKey:DeviceGUID;references:GUID"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user