package com.usky.ems.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 区域（base_area）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("base_area")
public class BaseArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;
    private Integer type;
    private BigDecimal area;
    @TableField("common_area")
    private BigDecimal commonArea;
    @TableField("air_conditioned_area")
    private BigDecimal airConditionedArea;
    @TableField("resident_population")
    private Integer residentPopulation;
    @TableField("tenant_id")
    private Integer tenantId;
    @TableField("updated_by")
    private String updatedBy;
    @TableField("created_by")
    private String createdBy;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("create_time")
    private LocalDateTime createTime;
}
