package com.ffii.fpsms.modules.deliveryOrder.entity

import com.fasterxml.jackson.annotation.JsonManagedReference
import com.ffii.core.entity.BaseEntity
import com.ffii.fpsms.m18.entity.M18DataLog
import com.ffii.fpsms.modules.deliveryOrder.enums.DeliveryOrderStatus
import com.ffii.fpsms.modules.deliveryOrder.enums.DeliveryOrderStatusConverter
import com.ffii.fpsms.modules.master.entity.Currency
import com.ffii.fpsms.modules.master.entity.Shop
import com.ffii.fpsms.modules.purchaseOrder.entity.PurchaseOrder
import com.ffii.fpsms.modules.user.entity.User
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import java.time.LocalDateTime

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

    @Column(name = "record_id")
    open var recordId: Long? = null
    @Column(name = "do_pick_order_id", length = 100)
    open var doPickOrderId: Long? = null

    @Column(name = "pick_order_id")  //  正确：普通列
    open var pickOrderId: Long? = null
    
    @Column(name = "do_order_id")    //  正确：普通列
    open var doOrderId: Long? = null
    
    @Column(name = "pick_order_code")  //  正确：普通列
    open var pickOrderCode: String? = null

    @Column(name = "delivery_order_code")
    open var deliveryOrderCode: String? = null
    @Column(name = "status", length = 20)
    open var status: String? = null
}