package com.izouma.wenlvju.domain;

import com.izouma.wenlvju.annotations.Searchable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Transient;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "考场")
@Where(clause = "del = 0")
public class ExamRoom extends BaseEntity {
//    private Long organizationId;

    @Searchable
    private String name;

    @ApiModelProperty(value = "设备序列号")
    private String deviceSerial;

    @ApiModelProperty(value = "设备验证码")
    private String validateCode;

    private String address;

    private Long recordId;

    @Transient
    private Integer status;

}
