package com.jeesharp.business.modules.finance.invoice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员发票抬头实体，映射表 {@code app_invoice_title}。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_invoice_title")
@Schema(description = "会员发票抬头")
public class MemberInvoiceTitle extends BaseEntity<MemberInvoiceTitle> {

    @Schema(description = "会员ID")
    private String memberId;

    /**
     * @see com.jeesharp.business.modules.finance.invoice.enums.InvoiceTitleTypeEnum
     */
    @Schema(description = "抬头类型：personal-个人 company-企业")
    private String titleType;

    @Schema(description = "抬头名称")
    private String titleName;

    @Schema(description = "税号")
    private String taxNo;

    @Schema(description = "开户行")
    private String bankName;

    @Schema(description = "银行账号")
    private String bankAccount;

    @Schema(description = "接收邮箱")
    private String email;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "企业地址")
    private String address;

    /**
     * @see com.jeesharp.business.modules.finance.invoice.enums.InvoiceTitleDefaultEnum
     */
    @Schema(description = "是否默认：0-否 1-是")
    private Integer isDefault;
}
