mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
14 lines
507 B
Go
14 lines
507 B
Go
package models
|
|
|
|
import (
|
|
"github.com/glueops/autoglue/internal/common"
|
|
)
|
|
|
|
type Annotation struct {
|
|
common.AuditFields `gorm:"embedded"`
|
|
Organization Organization `gorm:"foreignKey:OrganizationID;constraint:OnDelete:CASCADE" json:"organization"`
|
|
Key string `gorm:"not null" json:"key"`
|
|
Value string `gorm:"not null" json:"value"`
|
|
NodePools []NodePool `gorm:"many2many:node_annotations;constraint:OnDelete:CASCADE" json:"node_pools,omitempty"`
|
|
}
|