package com.izouma.wenlvju.domain;

import com.izouma.wenlvju.enums.PerformanceStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "展演管理")
public class Performance extends BaseEntity {
    @ApiModelProperty(value = "名称")
    private String            name;
    @ApiModelProperty(value = "时间")
    private LocalDate         startTime;
    @ApiModelProperty(value = "时间")
    private LocalDate         endTime;
    @ApiModelProperty(value = "地点")
    private String            address;
    @ApiModelProperty(value = "状态")
    @Enumerated(EnumType.STRING)
    private PerformanceStatus status;
}
