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

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

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

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

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

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

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

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

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

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