package com.dbnt.kcscbackend.admin.logs.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.time.LocalDate;
import java.awt.*;

@Getter
@Setter
@Accessors(chain = true)
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_daily_menu_log")
public class TnDailyMenuLog {
    @Id
    @Column(name = "dml_seq")
    private Long dmlSeq;

    @Column(name = "menu_id")
    private String menuId;

    @Column(name = "menu_title")
    private String menuTitle;

    @Column(name = "log_cnt")
    private Long logCnt;

    @Column(name = "log_dt")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate logDt;
}
