feat(BE): recording

This commit is contained in:
ragilap
2025-10-22 22:20:08 +07:00
parent 445789edfe
commit 346ae15314
10 changed files with 951 additions and 46 deletions
+16
View File
@@ -0,0 +1,16 @@
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"`
}