package com.itsol.quantrivanphong.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "timesheet")
public class TimeSheet {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false, unique = true)
    private int id;
// tiêu đề
    @Column(name = "title")
    private String title;
// nội dung
    @Column(name = "content")
    private String content;
// ghi chú
    @Column(name = "note")
    private String note;
// Duyệt, Chưa duyệt, Từ chối
    @Column(name = "checked")
    private String checked;
    // trạng thái
    @Column(name = "status")
    private boolean status;

    //    @JsonIgnore
    @ManyToOne(fetch = FetchType.EAGER)
    private Eproject eproject;
}
