package com.ffii.fpsms.modules.master.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import java.time.LocalDateTime

@Entity
@Table(name = "uom_conversion")
open class UomConversion : BaseEntity<Long>() {

        @Column(name = "m18Id")
        open var m18Id: Long = 0L

        @Column(name = "code")
        open var code: String? = null

        @Column(name = "udfudesc")
        open var udfudesc: String? = null

        @Column(name = "udfShortDesc")
        open var udfShortDesc: String? = null

        @Column(name = "unit1")
        open var unit1: String? = null

        @Column(name = "unit1Qty")
        open var unit1Qty: Double? = null

        @Column(name = "unit2")
        open var unit2: String? = null

        @Column(name = "unit2Qty")
        open var unit2Qty: Double? = null

        @Column(name = "unit3")
        open var unit3: String? = null

        @Column(name = "unit3Qty")
        open var unit3Qty: Double? = null

        @Column(name = "unit4")
        open var unit4: String? = null

        @Column(name = "unit4Qty")
        open var unit4Qty: Double? = null

        @Column(name = "sizeInGram")
        open var sizeInGram: Double? = null

        @Column(name = "gramPerSmallestUnit")
        open var gramPerSmallestUnit: Double? = null

        @Column(name = "lastModifyDate")
        open var lastModifyDate: LocalDateTime = LocalDateTime.now()
}