package studycave.studycaverestservice.model.simpleSet.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.sql.Date;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class SimpleSetDTO {

    private Long id;

    private String name;

    private String category;

    @JsonProperty("owner")
    private String owner;

    @JsonProperty("add_date")
    private Date addDate;

    @JsonProperty("edit_date")
    private Date editDate;

    private int grade;

    private String permission;

    private String group;

    public SimpleSetDTO(String name, String category, String owner) {
        super();
        this.name = name;
        this.category = category;
        this.owner = owner;
    }
}
