package com.ffii.fpsms.modules.pickOrder.entity

import com.ffii.core.entity.BaseEntity
import com.ffii.fpsms.modules.user.entity.User
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import java.time.LocalDate

@Entity
@Table(name = "pick_order_group")
open class PickOrderGroup: BaseEntity<Long>() {
    
    
    @Column(name = "pick_order_id")
    open var pickOrderId: Long? = null

    @Size(max = 50)
    
    @Column(name = "name")
    open var name: String? = null

    @Column(name = "target_date")
    open var targetDate: LocalDate? = null

    @ManyToOne
    @JoinColumn(name = "releasedBy", referencedColumnName = "id")
    open var releasedBy: User? = null
}