package org.hso.ecommerce.entities.booking;

import org.hso.ecommerce.entities.supplier.Supplier;
import org.hso.ecommerce.entities.user.User;

import javax.persistence.*;

@Entity
@Table(name = "booking_account_entries")
public class BookingAccountEntry {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic
    public long id;

    public int newSumCent;

    @ManyToOne(optional = true)
    public User userAccount;

    @ManyToOne(optional = true)
    public Supplier supplierAccount;

    public boolean isMainAccount;
    public boolean isVATAccount;

}
