package com.yh.saas.plugin.news.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author XinGuang
 * @since 2019-07-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("news_nationality")
public class CommonNationality extends BaseModel<CommonNationality> {

	private static final long serialVersionUID = 1L;

	/**
	 * 变量ID
	 */
	@TableId(type = IdType.INPUT)
	private String id;
	/**
	 * 国籍编号
	 */
	private String nationalityNo;
	/**
	 * 国家名称
	 */
	private String nationality;
	/**
	 * 国家英文
	 */
	private String nationalityEn;
	/**
	 * 排序编号
	 */
	private Integer serialNumber;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public static class QueryFields {

		public static final String NATIONALITY = "nationality";

		public static final String NATIONALITY_EN = "nationality_en";

		private QueryFields() {
		}
	}

}
