package model

import "time"

type GameShieldBackend struct {
	Id              int `gorm:"primary"`
	HostId          int `gorm:"not null"`
	KeySort         int
	SourceMachineIP string `gorm:"not null"`
	Protocol        string `gorm:"not null"`
	ProxyAddr       string `gorm:"null"`
	ConnectPort     string `gorm:"not null"`
	SdkPort         string
	SdkIp           string `gorm:"null"`
	Type            string
	MaxBandwidth    int `gorm:"not null;type:tinyint"`
	RealIp          string
	Host            string
	Remark          string
	CreatedAt       time.Time
	UpdatedAt       time.Time
}

func (m *GameShieldBackend) TableName() string {
	return "shd_game_shield_backend"
}
