mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
14 lines
388 B
Go
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"`
|
|
}
|