package com.kospo.talk.model;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.*;

import java.time.Instant;
import java.time.LocalDateTime;


@TableGenerator(
    name = "v_manual_seq",
    table = "sequence",
    pkColumnName = "sequence_name",
    valueColumnName = "next_val",
    allocationSize = 1
)


@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
@Entity
@Table(name = "v_manual")
public class VManual {
    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.TABLE,generator = "v_manual_seq")
    private Integer id;

    @Size(max = 20)
    @Column(name = "work_id", length = 20)
    private String workId;

    @Size(max = 100)
    @Column(name = "sonm", length = 100)
    private String sonm;

    @Size(max = 100)
    @NotNull
    @Column(name = "svnm", nullable = false, length = 100)
    private String svnm;

    @Size(max = 100)
    @Column(name = "onm", length = 100)
    private String onm;

    @Size(max = 100)
    @NotNull
    @Column(name = "vnm", nullable = false, length = 100)
    private String vnm;

    @Size(max = 200)
    @Column(name = "path", length = 200)
    private String path;

    @Column(name = "ins_date")
    private LocalDateTime insDate;

    @Column(name = "size")
    private Integer size;

    @Column(name = "delete_yn")
    private Boolean deleteYn;

}