2023-07-23 22:57:35 -07:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
|
2023-06-19 15:38:17 -07:00
|
|
|
namespace Newsbot.Collector.Domain.Entities;
|
|
|
|
|
|
|
|
public class DiscordWebhookEntity
|
|
|
|
{
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public string Url { get; set; } = "";
|
|
|
|
public string Server { get; set; } = "";
|
|
|
|
public string Channel { get; set; } = "";
|
|
|
|
public bool Enabled { get; set; }
|
2023-07-23 22:57:35 -07:00
|
|
|
|
|
|
|
public string? UserId { get; set; }
|
|
|
|
[ForeignKey(nameof(UserId))]
|
|
|
|
public IdentityUser? User { get; set; }
|
2023-06-19 15:38:17 -07:00
|
|
|
}
|