mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
16 lines
505 B
Go
16 lines
505 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
type RecordingBW struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
RecordingId uint `gorm:"column:recording_id;not null;index"`
|
|
AvgWeight float64 `gorm:"column:avg_weight;not null"`
|
|
Qty float64 `gorm:"column:qty;not null"`
|
|
TotalWeight float64 `gorm:"column:total_weight;not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
|
|
Recording Recording `gorm:"foreignKey:RecordingId;references:Id"`
|
|
}
|