package entities

import (
	"time"

	"github.com/google/uuid"
)

type IngredientComposition struct {
	ID                 uuid.UUID   `json:"id" db:"id"`
	OrganizationID     uuid.UUID   `json:"organization_id" db:"organization_id"`
	OutletID           *uuid.UUID  `json:"outlet_id" db:"outlet_id"`
	ParentIngredientID uuid.UUID   `json:"parent_ingredient_id" db:"parent_ingredient_id"`
	ChildIngredientID  uuid.UUID   `json:"child_ingredient_id" db:"child_ingredient_id"`
	Quantity           float64     `json:"quantity" db:"quantity"`
	CreatedAt          time.Time   `json:"created_at" db:"created_at"`
	UpdatedAt          time.Time   `json:"updated_at" db:"updated_at"`
	ParentIngredient   *Ingredient `json:"parent_ingredient,omitempty"`
	ChildIngredient    *Ingredient `json:"child_ingredient,omitempty"`
}
