package com.persagy.server.labsl.models.entities.pic

import com.alibaba.fastjson.annotation.JSONField
import com.persagy.service.models.SBaseEntity
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.io.Serializable
import javax.persistence.Column
import javax.persistence.Id
import javax.persistence.Table

/**
 * 图片实体
 *
 * @author  wx
 */
@ApiModel(description = "图片实体")
@Table(name = "labsl_pic.picture")
open class Picture : SBaseEntity(), Serializable {

    private val serialVersionUID = 1L
    /** id */
    @ApiModelProperty(value = "id")
    @Id
    @Column(name = "id")
    @JSONField(name = "Id")
    var id: String? = null

    /** 图片 */
    @ApiModelProperty(value = "图片")
    @JSONField(name = "Pic")
    @Column(name = "pic")
    var pic: ByteArray? = null
}