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

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

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

    @Size(max = 1000)
    @NotNull
    @Column(name = "description", nullable = true, length = 1000)
    open var description: String? = null

    @Size(max = 1000)
    @NotNull
    @Column(name = "remarks", nullable = true, length = 1000)
    open var remarks: String? = null
}