package com.xunhong.erp.turbo.biz.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shenyifei
 */
@Data
@TableName(value = "dealer_warehouse")
@EqualsAndHashCode(callSuper = true)
public class DealerWarehouseDO extends BaseDO<DealerWarehouseDO> {

	/**
	 * 仓库ID
	 */
	@TableId(value = "warehouse_id", type = IdType.ASSIGN_ID)
	private Long warehouseId;

	/**
	 * 经销商ID
	 */
	@TableField(value = "dealer_id")
	private Long dealerId;

	/**
	 * 经销商账户ID
	 */
	@TableField(value = "account_id")
	private Long accountId;

	/**
	 * 仓库名称
	 */
	@TableField(value = "name")
	private String name;

	/**
	 * 仓库地址
	 */
	@TableField(value = "address")
	private String address;

	/**
	 * 联系人
	 */
	@TableField(value = "contact_person")
	private String contactPerson;

	/**
	 * 联系电话
	 */
	@TableField(value = "contact_phone")
	private String contactPhone;

	/**
	 * 收货人姓名
	 */
	@TableField(value = "receiver_name")
	private String receiverName;

	/**
	 * 收货人电话
	 */
	@TableField(value = "receiver_phone")
	private String receiverPhone;

	/**
	 * 状态：1_启用；0_禁用；
	 */
	@TableField(value = "status")
	private Boolean status;

	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;

	@TableField(exist = false)
	private DealerDO dealerDO;

	@TableField(exist = false)
	private DealerPaymentAccountDO dealerPaymentAccountDO;
}

