// Path: src/main/java/com/sajo/teamkerbell/vo/TodoListVO.java
// @Data
// @NoArgsConstructor
// public class TodoListVO {
//     @NotNull
//     private String content;
//     @NotNull
//     private LocalDate startDate;
//     @NotNull
//     private LocalDate endDate;
//     private Integer userId;
// 
//     public TodoListVO(String content, LocalDate startDate, LocalDate endDate, Integer userId) {
//         this.content = content;
//         this.startDate = startDate;
//         this.endDate = endDate;
//         this.userId = userId;
//     }
// }


import com.sajo.teamkerbell.vo.TodoListVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
    private boolean finished = false;

    @Column
    private boolean overdue = false;


    @NotNull
    @Column
    private String content;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column
    private LocalDate startDate;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column
    private LocalDate endDate;

    @Column
    private LocalDate createdAt;

    @Column
    private LocalDate updatedAt;

    private TodoList(String content, LocalDate startDate, LocalDate endDate, Integer projectId, Integer userId) {
        this.content = content;
        this.startDate = startDate;
        this.endDate = endDate;
// Path: src/main/java/com/sajo/teamkerbell/vo/TodoListVO.java
// @Data
// @NoArgsConstructor
// public class TodoListVO {
//     @NotNull
//     private String content;
//     @NotNull
//     private LocalDate startDate;
//     @NotNull
//     private LocalDate endDate;
//     private Integer userId;
// 
//     public TodoListVO(String content, LocalDate startDate, LocalDate endDate, Integer userId) {
//         this.content = content;
//         this.startDate = startDate;
//         this.endDate = endDate;
//         this.userId = userId;
//     }
// }


// Path: src/main/java/com/sajo/teamkerbell/entity/TodoList.java
import com.sajo.teamkerbell.vo.TodoListVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

    private boolean finished = false;

    @Column
    private boolean overdue = false;


    @NotNull
    @Column
    private String content;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column
    private LocalDate startDate;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column
    private LocalDate endDate;

    @Column
    private LocalDate createdAt;

    @Column
    private LocalDate updatedAt;

    private TodoList(String content, LocalDate startDate, LocalDate endDate, Integer projectId, Integer userId) {
        this.content = content;
        this.startDate = startDate;
        this.endDate = endDate;
        this.projectId = projectId;