package com.nbclass.szxgl.model;

import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;

/**
 * @author wangweifeng
 * @version 1.0 2021/3/13
 */
@Data
@Table(name = "project_city")
public class ProjectCity {

    @Id
    private String id;

    /**
     * 类型
     */
    @NotEmpty(message="城市类型不能为空")
    @Column(name = "_type")
    private String type;

    /**
     * 项目id
     */
    @NotEmpty(message="项目id不能为空")
    @Column(name = "_project_id")
    private String projectId;

}
