package model

import (
	"time"
)

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

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