/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.party.relation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-04-02
 */
@Data
@TableName("party_branch_relation")
@ApiModel(value = "BranchRelation对象", description = "BranchRelation对象")
public class BranchRelation implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 党支部资源关联表
	 */
	@ApiModelProperty(value = "党支部资源关联表")
	private Long id;
	/**
	 * 资源类型： 1-社区 2-小区  3-园区  4-企业
	 */
	@ApiModelProperty(value = "资源类型： 1-社区 2-小区  3-园区  4-企业")
	private Integer resourceType;
	/**
	 * 资源id ，若resouce_type为1，则为社区id；以此类推
	 */
	@ApiModelProperty(value = "资源id ，若resouce_type为1，则为社区id；以此类推")
	private Long resourceId;
	/**
	 * 支部id
	 */
	@ApiModelProperty(value = "支部id")
	private Long branchId;

	/**
	 * 租户id
	 */
	@ApiModelProperty(value = "租户id")
	private String tenantId;


}
