package entities import "time" type RecordingBW struct { Id uint `gorm:"primaryKey"` RecordingId uint `gorm:"column:recording_id;not null;index"` Weight float64 `gorm:"column:weight;not null"` Qty int `gorm:"column:qty;not null;default:1"` Notes *string `gorm:"column:notes"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` Recording Recording `gorm:"foreignKey:RecordingId;references:Id"` }