using System;
using System.Collections.Generic;

namespace Models.Models;

public partial class PhSCustomer
{
    public int Id { get; set; }

    public string? Name { get; set; }

    public string? BusinessName { get; set; }

    public int? AccounttypesId { get; set; }

    public int? TaxConditionId { get; set; }

    public bool HasCreditAccount { get; set; }

    public decimal CreditLimit { get; set; }

    public bool Active { get; set; }

    public string? ExternalCode { get; set; }

    public virtual PhSAccountType? Accounttypes { get; set; }

    public virtual ICollection<PhSCustomerAddress> PhSCustomerAddresses { get; set; } = new List<PhSCustomerAddress>();

    public virtual ICollection<PhSCustomerDocument> PhSCustomerDocuments { get; set; } = new List<PhSCustomerDocument>();

    public virtual ICollection<PhSDeliveryNote> PhSDeliveryNotes { get; set; } = new List<PhSDeliveryNote>();

    public virtual ICollection<PhSPatient> PhSPatients { get; set; } = new List<PhSPatient>();

    public virtual ICollection<PhSSalesDocument> PhSSalesDocumentBillToCustomers { get; set; } = new List<PhSSalesDocument>();

    public virtual ICollection<PhSSalesDocument> PhSSalesDocumentCustomers { get; set; } = new List<PhSSalesDocument>();

    public virtual PhOhTaxCondition? TaxCondition { get; set; }
}
