package com.yuchen.saas.park.api.entity.property;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "楼层信息", description = "楼层信息")
@TableName("property_buildings_level")
public class PropertyBuildingsLevel extends TenantEntity {



    @NotNull(message = "楼层数字编号不能为空")
    @ApiModelProperty(value = "楼层数字编号")
    private String levelNum;
    @NotNull(message = "楼层名称不能为空")
    @ApiModelProperty(value = "楼层名称")
    private String levelName;
    @NotNull(message = "楼栋id不能为空")
    @ApiModelProperty(value = "建筑/楼栋id")
    private Long buildingId;

    @ApiModelProperty(value = "楼层3D可视化模型")
    private String level3dModel;

    @ApiModelProperty(value = "楼栋单元id")
    private Long buildingUnitId;

    @TableField(exist = false)
    @ApiModelProperty(name = "rooms", value = "房间列表")
    private List<PropertyHouses> rooms;



}
