package model import "gorm.io/gorm" type AccessControl struct { gorm.Model } type DeviceRanking struct { Id int `json:"Id"` DeviceName string `json:"DeviceName"` Value int `json:"Value"` } func (m *AccessControl) TableName() string { return "access_control" }