Files
lti-api/internal/entities/recording_bw.go
T
2025-10-22 22:20:08 +07:00

17 lines
520 B
Go

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"`
}