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
+14
View File
@@ -0,0 +1,14 @@
package entities
type RecordingStock struct {
Id uint `gorm:"primaryKey"`
RecordingId uint `gorm:"column:recording_id;not null;index"`
ProductWarehouseId uint `gorm:"column:product_warehouse_id;not null"`
Increase *float64 `gorm:"column:increase"`
Decrease *float64 `gorm:"column:decrease"`
UsageAmount *int64 `gorm:"column:usage_amount"`
Notes *string `gorm:"column:notes"`
Recording Recording `gorm:"foreignKey:RecordingId;references:Id"`
ProductWarehouse ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
}