package com.softwarebr.nunu.entity.oper;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @date: 2019-10-21 17:33:17
 * @author: lilin
 * @description: 省市区数据
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="app_area")
@Builder
public class Area {

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

	@ApiModelProperty(value = "对应的父级区域编号", required = true, example = "0")
	private Long parentId;

	@ApiModelProperty(value = "区域名称", required = true, example = "广东省")
	private String cityName;

}