18 lines
643 B
Go
18 lines
643 B
Go
package model
|
|
|
|
import "next-terminal/server/common"
|
|
|
|
type GatewayGroup struct {
|
|
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
|
Name string `gorm:"type:varchar(500)" json:"name"`
|
|
Description string `gorm:"type:varchar(1000)" json:"description"`
|
|
SelectionMode string `gorm:"type:varchar(20);default:'priority'" json:"selectionMode"`
|
|
Members string `gorm:"type:text" json:"members"`
|
|
Created common.JsonTime `json:"createdAt"`
|
|
Updated common.JsonTime `json:"updatedAt"`
|
|
}
|
|
|
|
func (r *GatewayGroup) TableName() string {
|
|
return "gateway_groups"
|
|
}
|