package com.xindazhou.vehicle.dal.dataobject.gallery;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xindazhou.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;

/**
 * 车辆图片 DO
 *
 * @author xindazhou
 */
@TableName(value = "vehicle_image", autoResultMap = true)
@KeySequence("vehicle_image_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VehicleImageDO extends BaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 图片名称
     */
    private String name;

    /**
     * 图片URL
     */
    private String url;

    /**
     * 分类：正面、侧面、斜侧45度角、背面、俯拍、细节特写、APP首页展示图
     */
    private String category;

    /**
     * 车辆ID
     */
    private Long vehicleId;

    /**
     * 图库ID
     */
    private Long galleryId;

}

