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.api.biz.dto.enums.SupplierTypeEnum;
import com.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

	/**
	 * 供应商ID
	 */
	@TableId(value = "supplier_id", type = IdType.ASSIGN_ID)
	private Long supplierId;

	/**
	 * 姓名
	 */
	@TableField(value = "name")
	private String name;

	/**
	 * 收款人姓名
	 */
	@TableField(value = "payee_name")
	private String payeeName;

	/**
	 * 身份证号
	 */
	@TableField(value = "id_card")
	private String idCard;

	/**
	 * 手机号
	 */
	@TableField(value = "phone")
	private String phone;

	/**
	 * 银行卡号
	 */
	@TableField(value = "bank_card")
	private String bankCard;

	/**
	 * 微信收款码URL
	 */
	@TableField(value = "wechat_qr")
	private String wechatQr;

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

	/**
	 * 供应商类型：1_瓜农；2_自家档口；3_其他家档口
	 */
	@TableField(value = "type")
	private SupplierTypeEnum type;

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

	/**
	 * 创建人ID
	 */
	@TableField(value = "created_by")
	private Long createdBy;

	/**
	 * 创建人姓名
	 */
	@TableField(value = "created_by_name")
	private String createdByName;

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

	@TableField(exist = false)
	private DealerDO dealerDO;

}

