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

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import java.math.BigDecimal

@Entity
@Table(name = "warehouse")
open class Warehouse : BaseEntity<Long>() {
    @NotNull
    @Column(name = "code", nullable = false, length = 30)
    open var code: String? = null

    @NotNull
    @Column(name = "name", nullable = false, length = 30)
    open var name: String? = null

    @NotNull
    @Column(name = "description", nullable = false, length = 30)
    open var description: String? = null

    @NotNull
    @Column(name = "capacity", nullable = false, precision = 14, scale = 2)
    open var capacity: BigDecimal? = null
}