package com.izouma.wenlvju.domain;

import com.izouma.wenlvju.enums.ApplyStatus;
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 javax.persistence.Transient;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "展演报名")
public class PerformanceApply extends BaseEntity {
    private Long performanceId;

    private Long organizationId;

    @ApiModelProperty(value = "作品名称")
    private String composition;

    @ApiModelProperty(value = "专业")
    private Long artTypeId;

    @ApiModelProperty(value = "指导老师")
    private String teacher;

    @ApiModelProperty(value = "联系人")
    private String contact;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "状态")
    private ApplyStatus status;

    @ApiModelProperty(value = "表演开始时间")
    private LocalDateTime showStartTime;

    @ApiModelProperty(value = "表演结束时间")
    private LocalDateTime showEndTime;

    @ApiModelProperty(value = "奖项")
    private String awards;

    private Double score;

    @ApiModelProperty(value = "签到时间")
    private LocalDateTime signInAt;

    @ApiModelProperty(value = "签到人")
    private Long signInBy;

    @Transient
    private String artType;

    @Transient
    private String organizer;

}
