package com.izouma.dingdong.domain.backstage;

import com.izouma.dingdong.domain.BaseEntity;
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.Column;
import javax.persistence.Entity;

@Builder
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Where(clause = "enabled = 1")
@ApiModel(value = "语音配置")
public class Voice extends BaseEntity {
/*    @ApiModelProperty(value = "用户ID", name = "userId")
    private Long userId;*/

    @ApiModelProperty(value = "内容")
    private String content;

    @Column(nullable = false)
    private Boolean enabled = true;

    private String url;

    @ApiModelProperty(value = "英文")
    private String enUrl;

    @ApiModelProperty(value = "泰文")
    private String thUrl;



/*    @ApiModelProperty(value = "是否开启")
    private Boolean isOpen;*/
}
