using GreenTree.Strohrmann.ERP.Core.Domain.Shared;
using System;
using System.Collections.Generic;
using System.Text;

namespace GreenTree.Strohrmann.ERP.Core.Domain.Business
{
    public class Customer : TrackedEntity
    {
        /// <summary>
        /// Customer id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Customer title
        /// </summary>
        public virtual Title Title { get; set; }

        /// <summary>
        /// Customer forename
        /// </summary>
        public string Firstname { get; set; }

        /// <summary>
        /// Customer lastname
        /// </summary>
        public string Lastname { get; set; }

        /// <summary>
        /// Customer company name
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// Customer business state
        /// </summary>
        public bool IsBusiness { get; set; }

        /// <summary>
        /// Customer address
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// Customer town
        /// </summary>
        public string Town { get; set; }

        /// <summary>
        /// Customer zip code
        /// </summary>
        public string ZipCode { get; set; }

        /// <summary>
        /// Customer country
        /// </summary>
        public string Country { get; set; }

        /// <summary>
        /// Customer tax
        /// </summary>
        public virtual Tax Tax { get; set; }

        /// <summary>
        /// Customer crafts
        /// </summary>
        public virtual ICollection<Craft> Crafts { get; set; }
    }
}
