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