package com.ffii.fpsms.modules.logistic.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

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

    @field:NotNull
    @field:Size(max = 255)
    @Column(name = "logisticName", nullable = false, length = 255)
    open var logisticName: String? = null

    @field:NotNull
    @field:Size(max = 50)
    @Column(name = "carPlate", nullable = false, length = 50)
    open var carPlate: String? = null

    @field:NotNull
    @field:Size(max = 255)
    @Column(name = "driverName", nullable = false, length = 255)
    open var driverName: String? = null

    @field:NotNull
    @Column(name = "driverNumber", nullable = false)
    open var driverNumber: Int? = null
}

