using Lada.Framework.Data.Domains.BaseEntities;
using System.ComponentModel.DataAnnotations;

namespace Lada.Framework.Data.Domains.Cms
{
    public class Faq : BaseEntityWithKey<int>
    {

        /// <summary>
        /// Câu hỏi
        /// </summary>
        [MaxLength(512)]
        public string Name { get; set; }

        /// <summary>
        /// Câu trả lời
        /// </summary>
        [MaxLength(1024)]
        public string AcceptedAnswer { get; set; }

        public virtual IEnumerable<Post>? Posts { get; set; }
    }
}