package com.bocloud.ims.entity.common;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.Generic;
import com.bocloud.entity.meta.PKStrategy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户与项目之间的关系表
 * @author admin
 */
@Table("user_project")
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class UserProject extends Generic {

    /**
     * id
     */
    @PK(value = PKStrategy.AUTO)
    private Long id;
    /**
     * 用户id
     */
    @Column("user_id")
    private Long userId;
    /**
     * 项目id
     */
    @Column("project_id")
    private Long projectId;
    /**
     * 是否是项目管理员
     */
    @Column("project_admin")
    private Boolean projectAdmin;

}