package com.realnet.Workspaceuser.Entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.realnet.WhoColumn.Entity.Who_column;

import lombok.Data;

@Entity
@Data
public class Sec_workspace_users extends Who_column {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private int worksapce_id;
	private Long user_id;
	private String user_name;
	private Integer project_id;
	private String user_role;

	private String project_name;
	private Long fromuserId;

	private Integer access_duration;

	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-mm-yyyy")
	private Date access_till_date;

}
