package com.izouma.zhirongip.domain;

import com.izouma.zhirongip.enums.PartnerType;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "客户")
@Where(clause = "del = 0")
public class Partner extends BaseEntity {
    private String img;

    private String url;

    @Enumerated(EnumType.STRING)
    private PartnerType type;
}
