package com.bs.pm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
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 io.swagger.annotations.ApiModelProperty;

/**
 * 业主房屋关联对象 pm_owner_house_rel
 *
 * @author bs
 * @date 2025-10-04
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pm_owner_house_rel")
@Data
public class PmOwnerHouseRel extends BaseEntity{
    private static final long serialVersionUID = 1L;

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

    /** 业主id */

    @Excel(name = "业主id")
    @ApiModelProperty(value = "业主id")
    private Long ownerId;

    /** 房屋id */

    @Excel(name = "房屋id")
    @ApiModelProperty(value = "房屋id")
    private Long houseId;

    /** 关联类型 */

    @Excel(name = "关联类型")
    @ApiModelProperty(value = "关联类型")
    private String relType;

    /** 绑定时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "绑定时间")
    private Date bindTime;

    /** 解绑时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解绑时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "解绑时间")
    private Date unbindTime;




}
