package com.izouma.jmrh.domain.stat;

import com.izouma.jmrh.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import java.security.PrivateKey;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("城市数据")
public class CityData extends BaseEntity {
    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("数量")
    private int num;


    @OneToOne
    @JoinColumn(name = "categoryId")
    @ApiModelProperty(name = "分类")
    private Category category;
}
