Files
lti-api/internal/entities/product_supplier.go
T
2026-01-12 14:54:14 +07:00

14 lines
388 B
Go

package entities
import "time"
type ProductSupplier struct {
ProductId uint `gorm:"not null"`
SupplierId uint `gorm:"not null"`
Price float64 `gorm:"type:numeric(15,3);not null;default:0"`
CreatedAt time.Time `gorm:"autoCreateTime"`
Product Product `gorm:"foreignKey:ProductId;references:Id"`
Supplier Supplier `gorm:"foreignKey:SupplierId;references:Id"`
}