using Lada.Framework.Data.Enums;
using System.ComponentModel.DataAnnotations;

namespace Ladaer.BackEnd.Infrastructures.DTO.Models.Cms
{
    public class UrlRecordModel
    {
        public long Id { get; set; }

        [MaxLength(512)]
        public string MetaTitle { get; set; }

        [MaxLength(1024)]
        public string MetaDescription { get; set; }

        [MaxLength(512)]
        public string MetaKeywords { get; set; }

        /// <summary>
        /// Gets or sets the slug
        /// </summary>
        public string Slug { get; set; }

        /// <summary>
        /// Tên thực thể và cũng là tên controller luôn
        /// </summary>
        public string EntityName { get; set; }


        #region SEO properties
        public bool IncludeInSiteMap { get; set; } = true;
        public double? Priority { get; set; } = 0.75;
        public SitemapFrequency? Frequency { get; set; }
        public int UpdatedBy { get; internal set; }
        public string UpdatedByUserName { get; internal set; }
        #endregion
    }
}
