package models // MaterialShare is the pivot row between a private material and a user it // is shared with. type MaterialShare struct { MaterialID uint `gorm:"column:material_id;primaryKey"` UserID uint `gorm:"column:user_id;primaryKey"` } // TableName is the pivot table. func (MaterialShare) TableName() string { return "jz_bm_material_shares" }