namespace Domain.Models
{
    public class Ad
    {
        public Ad()
        {
            Comments = new List<Comment>();
        }

        public int Id { get; set; }

        public string Name { get; set; }
        public string Content { get; set; }

        public string? PathImg {  get; set; }

        public decimal Price { get; set; }


        public DateTime DateCreate { get; set; }

        public bool IsVerified { get; set; }
        public bool IsTop { get; set; }


        public string CityName { get; set; }
        public City? City { get; set; }

        public int CategotyId { get; set; }
        public Category? Categoty { get; set; }


        public string? UserId { get; set; }
        public User? User { get; set; }

        public virtual ICollection<Comment>? Comments { get; set; }
    }
}
