modified monitor model

This commit is contained in:
yangk 2020-11-12 13:35:42 +08:00
parent 4c9a81e83b
commit 459eff0939

View File

@ -3,9 +3,9 @@ package model
//TenantServiceMonitor custom service monitor
type TenantServiceMonitor struct {
Model
TenantID string `gorm:"column:tenant_id;size:40" json:"tenant_id"`
TenantID string `gorm:"column:tenant_id;size:40;primary_key" json:"tenant_id"`
ServiceID string `gorm:"column:service_id;size:40" json:"service_id"`
Name string `gorm:"column:name;size:40;unique_index" json:"name"`
Name string `gorm:"column:name;size:40;primary_key" json:"name"`
ServiceShowName string `gorm:"column:service_show_name" json:"service_show_name"`
Port int `gorm:"column:port;size:5" json:"port"`
Path string `gorm:"column:path;size:255" json:"path"`