package com.amms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 预约时段对象 reservation_time_slot
 */
public class ReservationTimeSlot {

    /** 时段id */
    private Long id;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /** 开始时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    private Date endTime;

    /** 最大人数 */
    private Integer maxPeople;

    /** 已预约人数 */
    private Integer currentPeople;

    /** 状态（0不可约 1可约） */
    private Long status;

    /** 创建者id */
    private Long creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setMaxPeople(Integer maxPeople) {
        this.maxPeople = maxPeople;
    }

    public Integer getMaxPeople() {
        return maxPeople;
    }

    public void setCurrentPeople(Integer currentPeople) {
        this.currentPeople = currentPeople;
    }

    public Integer getCurrentPeople() {
        return currentPeople;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }


    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getCreator() {
        return creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ReservationTimeSlot{" +
            "id=" + id +
            ", date=" + date +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", maxPeople=" + maxPeople +
            ", currentPeople=" + currentPeople +
            ", status=" + status +
            ", createTime=" + createTime +
            ", creator=" + creator +
        '}';
    }
}
