package org.jpos.tcpay.db.entity;


import lombok.Data;
import lombok.experimental.Accessors;
import org.jpos.tcpay.acquirer.AcquirerNames;

import javax.persistence.*;

@Data
@Accessors(chain = true)
@Entity
@Table(name = "acquirer_merchant")
public class AcquirerMerchant {
    @Id
    @GeneratedValue
    long id;

    @OneToOne
    @JoinColumn(name = "acquirer_id")
    Acquirer acquirer;

    @Column(name="merchantid")
    String merchantId;

    @Column(name="mcc")
    String mcc;

    @OneToOne
    @JoinColumn(name = "address_id")
    Address address;
}
