/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Use of this software is governed by the Commercial License Agreement
 * obtained after purchasing a license from BladeX.
 * <p>
 * 1. This software is for development use only under a valid license
 * from BladeX.
 * <p>
 * 2. Redistribution of this software's source code to any third party
 * without a commercial license is strictly prohibited.
 * <p>
 * 3. Licensees may copyright their own code but cannot use segments
 * from this software for such purposes. Copyright of this software
 * remains with BladeX.
 * <p>
 * Using this software signifies agreement to this License, and the software
 * must not be used for illegal purposes.
 * <p>
 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
 * not liable for any claims arising from secondary or illegal development.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 港口码头主数据实体类
 *
 * @author Chill
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("blade_port_terminal")
@Schema(description = "港口码头主数据")
public class PortTerminal extends BaseEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 编码
	 */
	@Schema(description = "编码")
	private String code;
	/**
	 * 港口/码头名称
	 */
	@Schema(description = "港口/码头名称")
	private String name;
	/**
	 * 类型：港口、码头
	 */
	@Schema(description = "类型")
	private String category;
	/**
	 * 上级港口ID
	 */
	@Schema(description = "上级港口ID")
	private Long parentId;
	/**
	 * 上级港口编码
	 */
	@Schema(description = "上级港口编码")
	private String parentCode;
	/**
	 * 上级港口名称
	 */
	@Schema(description = "上级港口名称")
	private String parentName;
	/**
	 * 国家
	 */
	@Schema(description = "国家")
	private String country;
	/**
	 * 城市
	 */
	@Schema(description = "城市")
	private String city;
	/**
	 * 区县编码
	 */
	@Schema(description = "区县编码")
	private String districtCode;
	/**
	 * 区县
	 */
	@Schema(description = "区县")
	private String districtName;
	/**
	 * 行政区划编码
	 */
	@TableField(exist = false)
	@Schema(description = "行政区划编码")
	private String regionCode;
	/**
	 * 详细地址
	 */
	@Schema(description = "详细地址")
	private String detailAddress;
	/**
	 * 经度
	 */
	@Schema(description = "经度")
	private BigDecimal longitude;
	/**
	 * 纬度
	 */
	@Schema(description = "纬度")
	private BigDecimal latitude;
	/**
	 * 数据来源
	 */
	@Schema(description = "数据来源")
	private String dataSource;
	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

}
