@@ -16,7 +16,7 @@ import (
// that it is easier to prevent a task from
// being executed again.
type Job struct {
- ID string `gorm:"id;primary_key"`
+ ID string `gorm:"id;primaryKey"`
CreatedAt time.Time `gorm:"created_at"`
}
@@ -6,7 +6,7 @@ import (
)
type Network struct {
IsIPv4 string `gorm:"is_ipv4;default:'yes'"`
IsIPv6 string `gorm:"is_ipv6;default:'no'"`
AddressRange string `gorm:"address_range"`