package com.softwarebr.nunu.entity.go;

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-19 16:28:24
 * @author lilin
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="go_policy_label")
@Builder
public class PolicyLabel {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", required = true, example = "1")
	private Long id;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

	@ApiModelProperty(value = "政策id", required = true, example = "")
	private Long policyId;

	@ApiModelProperty(value = "一级标签", required = true, example = "")
	private Long parentId;

	@ApiModelProperty(value = "二级标签", required = true, example = "")
	private Long childId;
}