mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
17 lines
526 B
Go
17 lines
526 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ExpenseRealization struct {
|
|
Id uint64 `gorm:"primaryKey;autoIncrement"`
|
|
ExpenseNonstockId *uint64 `gorm:""`
|
|
Qty float64 `gorm:"type:numeric(15,3);not null;"`
|
|
Price float64 `gorm:"type:numeric(15,3);not null;"`
|
|
Notes string `gorm:"type:text;"`
|
|
CreatedAt time.Time `gorm:"type:timestamptz;default:CURRENT_TIMESTAMP"`
|
|
|
|
ExpenseNonstock *ExpenseNonstock `gorm:"foreignKey:ExpenseNonstockId;references:Id"`
|
|
}
|