package com.softwarebr.nunu.entity.hall;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * @date 2020-02-25 12:11:26
 * @author lilin
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="hall_team")
@Builder
public class Team {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", required = true, example = "1")
	private Long id;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(updatable = false)
	@ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

	@ApiModelProperty(value = "项目id", required = true, example = "")
	private Long investId;

	@ApiModelProperty(value = "个人照片", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String pictureUri;

	@ApiModelProperty(value = "个人姓名", required = true, example = "")
	private String name;

	@ApiModelProperty(value = "所属职责", required = true, example = "")
	private String duty;

	@ApiModelProperty(value = "个人简介", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String synopsis;

}