package model

import (
	"time"
)

type Gatewayip struct {
	Id           int `gorm:"primary"`
	HostId       int `gorm:"not null"`
	Ip           string `gorm:"not null"`
	Name         string `gorm:"null"`
	NodeArea     string `gorm:"null"`
	Operator     int `gorm:"not null;default:1"`
	BanOverseas  int `gorm:"null;default:0"`
	BanUdp       int `gorm:"null;default:0"`
	Comment      string `gorm:"null"`
	CreatedAt    time.Time `json:"createdAt" form:"createdAt"`
	UpdatedAt    time.Time `json:"updatedAt" form:"updatedAt"`
}

func (m *Gatewayip) TableName() string {
    return "shd_waf_gateway_ip"
}
