package models // A binding of one note to one media attachment type NoteToAttachment struct { ID uint64 `gorm:"primarykey"` Note Note // The note being bound NoteId string Attachment MediaMetadata // The media being bound to AttachmentId string }