package cn.palmte.work.model;

import lombok.Data;

import javax.persistence.*;

/**
 * 项目可见性配置
 */
@Data
@Entity
@Table(name = "project_visible")
public class ProjectVisible {
    public static final int TYPE_ROLE = 1;
    public static final int TYPE_USER = 2;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @Column(name = "project_id")
    private int projectId;

    /**
     * 1按照角色，2按照人员
     * 为了简便，目前只存人员
     */
    private int type;

    private int tid;

}
