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

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import jakarta.validation.constraints.Size

@Entity
@Table(name = "printer")
open class Printer : BaseEntity<Long>() {
    @Size(max = 500)
    @Column(name = "code", length = 500)
    open var code: String? = null

    @Size(max = 500)
    @Column(name = "name", length = 500)
    open var name: String? = null

    @Size(max = 255)
    @Column(name = "type", nullable = true, length = 255)
    open var type: String? = null

    @Size(max = 255)
    @Column(name = "brand", nullable = true, length = 255)
    open var brand: String? = null

    @Size(max = 500)
    @Column(name = "description", length = 500)
    open var description: String? = null

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

    @Column(name = "port", length = 10)
    open var port: Int? = null

    @Column(name = "dpi", nullable = true)
    open var dpi: Int? = null
}