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