package com.ffii.fpsms.modules.master.web.models

import jakarta.validation.constraints.NotBlank
import java.math.BigDecimal
import java.time.LocalDateTime

data class SaveBomRequest (
    val id: Long? = null,
    @field:NotBlank(message = "bom code cannot be empty")
    val code: String,
    @field:NotBlank(message = "bom name cannot be empty")
    val name: String,
    @field:NotBlank(message = "bom description cannot be empty")
    val description: String,
    val itemId: Long? = null,
    val outputQty: BigDecimal? = null,
    val outputQtyUom: String? = null,
    val yield: BigDecimal? = null,
    val uomId: Long? = null,
    val m18UomId: Long? = null,
    val m18Id: Long? = null,
    val m18LastModifyDate: LocalDateTime? = null
)