using System;
using System.Collections.Generic;

#nullable disable

namespace BO.AppServer.Data.Entity
{
    public partial class Invoice
    {
        public Invoice()
        {
            InvoiceItems = new HashSet<InvoiceItem>();
        }

        // public long Id { get; set; }
        public long WorkspaceId { get; set; }
        public long InvoiceIssuerId { get; set; }
        public string Code { get; set; }
        public string SubjectName { get; set; }
        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string City { get; set; }
        public string Zip { get; set; }
        public string Country { get; set; }
        public string TaxNumber { get; set; }
        public string Vatnumber { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        public decimal TotalBasePrice { get; set; }
        public string TotalBaseCurrency { get; set; }
        public string Channel { get; set; }
        public string ChannelReference { get; set; }
        public DateTime DueDate { get; set; }
        public DateTime TaxDate { get; set; }
        public DateTime Created { get; set; }
        public DateTime? Modified { get; set; }
        public long CreatedByUserId { get; set; }
        public long? ModifiedByUserId { get; set; }

        public virtual User CreatedByUser { get; set; }
        public virtual InvoiceIssuer InvoiceIssuer { get; set; }
        public virtual User ModifiedByUser { get; set; }
        public virtual Workspace Workspace { get; set; }
        public virtual ICollection<InvoiceItem> InvoiceItems { get; set; }
    }
}
