using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Yavsc.Models
{
    public partial class BaseProduct
    {
        /// <summary>
        /// An unique product identifier.
        /// </summary>
        /// <returns></returns>
        [Key(),DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }
        public string Name { get; set; }
        /// <summary>
        /// A contractual description for this product.
        /// </summary>
        /// <returns></returns>
        public string Description { get; set; }

        /// <summary>
        /// Controls wether this product or service
        /// may be offered to clients, or simply
        /// are internal workflow entry point.
        /// </summary>
        /// <returns>true when this product belongs to the public catalog.</returns>
        public bool Public { get; set; }
    }

}
