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;

import java.time.LocalDateTime;

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

	/**
	 * 记录ID
	 */
	@TableId(value = "order_company_id", type = IdType.ASSIGN_ID)
	private Long orderCompanyId;

	/**
	 * 订单ID
	 */
	@TableField(value = "order_id")
	private Long orderId;

	/**
	 * 公司ID
	 */
	@TableField(value = "company_id")
	private Long companyId;

	/**
	 * 公司简称
	 */
	@TableField(value = "short_name")
	private String shortName;

	/**
	 * 公司全称
	 */
	@TableField(value = "full_name")
	private String fullName;

	/**
	 * 税号
	 */
	@TableField(value = "tax_number")
	private String taxNumber;

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

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

	/**
	 * 发货地址
	 */
	@TableField(value = "address")
	private String address;

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

	/**
	 * 银行名称
	 */
	@TableField(value = "bank_name")
	private String bankName;

	/**
	 * 支行名称
	 */
	@TableField(value = "branch_name")
	private String branchName;

	/**
	 * 账户名称
	 */
	@TableField(value = "account_name")
	private String accountName;

	/**
	 * 银行账号
	 */
	@TableField(value = "account_number")
	private String accountNumber;

	/**
	 * 创建时间
	 */
	@TableField(value = "created_at")
	private LocalDateTime createdAt;

}

