using MisIngredientesVue.Core.Attributes; using MisIngredientesVue.Core.Services; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace MisIngredientesVue.Core.Models { public class WebHook : RepositoryEntity { [DoNotUpdate] [IgnoreRelationship] public string TenantId { get; set; } [DisplayName("URL")] [Required] [MaxLength(255)] [Unique] public string Url { get; set; } [DisplayName("Evento")] [Required] [MaxLength(50)] [Unique] public string EventName { get; set; } } public class WebHookCall { public string TenantId { get; set; } public string Url { get; set; } public string EventId { get; set; } public string EventName { get; set; } public DateTime DateTime { get; set; } public string Request { get; set; } public bool Success { get; set; } public string Response { get; set; } } }