dashboard-v2/database/table/rolescache.go
2020-03-17 21:17:32 +00:00

12 lines
264 B
Go

package table
// Use an intermediary table to prevent a many-to-many relationship
type RoleCache struct {
MemberId int `gorm:"column:MEMBERID;primary_key"`
RoleId int64 `gorm:"column:ROLEID"`
}
func (RoleCache) TableName() string {
return "cache_roles"
}