package com.palmnest.model;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 用户-运营中心关系实体类
 * Created by hxt on 2018/8/1.
 */
@Entity
@Table(name = "tr_app_user_company")
public class AppUserCompanyRelation implements Serializable {
	private static final long serialVersionUID = 7458660727936259474L;

	private Integer id;
	private Integer userId;
	private Integer companyId;
	private Integer roleId;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "USER_ID")
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "COMP_ID")
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	@Column(name = "ROLE_ID")
	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
}
