mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
18 lines
529 B
Go
18 lines
529 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ProjectBudget struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
ProjectFlockId uint `gorm:"not null"`
|
|
NonstockId uint `gorm:"not null"`
|
|
Qty float64 `gorm:"type:numeric(15,3);not null"`
|
|
Price float64 `gorm:"type:numeric(15,3);not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
|
|
Nonstock *Nonstock `gorm:"foreignKey:NonstockId;references:Id"`
|
|
ProjectFlock *ProjectFlock `gorm:"foreignKey:ProjectFlockId;references:Id"`
|
|
}
|