features/cutover-to-ef #9
20
Newsbot.Collector.Domain/Entities/ArticlesEntity.cs
Normal file
20
Newsbot.Collector.Domain/Entities/ArticlesEntity.cs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Entities;
|
||||||
|
|
||||||
|
public class ArticlesEntity
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public Guid SourceId { get; set; }
|
||||||
|
public string Tags { get; set; } = "";
|
||||||
|
public string Title { get; set; } = "";
|
||||||
|
public string? Url { get; set; }
|
||||||
|
public DateTime PubDate { get; set; } = DateTime.Now;
|
||||||
|
public string Video { get; set; } = "";
|
||||||
|
public int VideoHeight { get; set; } = 0;
|
||||||
|
public int VideoWidth { get; set; } = 0;
|
||||||
|
public string Thumbnail { get; set; } = "";
|
||||||
|
public string Description { get; set; } = "";
|
||||||
|
public string AuthorName { get; set; } = "";
|
||||||
|
public string? AuthorImage { get; set; }
|
||||||
|
public bool CodeIsRelease { get; set; }
|
||||||
|
public bool CodeIsCommit { get; set; }
|
||||||
|
}
|
9
Newsbot.Collector.Domain/Entities/AuthorEntity.cs
Normal file
9
Newsbot.Collector.Domain/Entities/AuthorEntity.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Entities;
|
||||||
|
|
||||||
|
public class AuthorEntity
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public Guid SourceId { get; set; }
|
||||||
|
public string Name { get; set; } = "";
|
||||||
|
public string Image { get; set; } = "";
|
||||||
|
}
|
7
Newsbot.Collector.Domain/Entities/DiscordQueueEntity.cs
Normal file
7
Newsbot.Collector.Domain/Entities/DiscordQueueEntity.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Entities;
|
||||||
|
|
||||||
|
public class DiscordQueueEntity
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public Guid ArticleId { get; set; }
|
||||||
|
}
|
10
Newsbot.Collector.Domain/Entities/DiscordWebhookEntity.cs
Normal file
10
Newsbot.Collector.Domain/Entities/DiscordWebhookEntity.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
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; }
|
||||||
|
}
|
10
Newsbot.Collector.Domain/Entities/IconEntity.cs
Normal file
10
Newsbot.Collector.Domain/Entities/IconEntity.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Entities;
|
||||||
|
|
||||||
|
public class IconEntity
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public string FileName { get; set; } = "";
|
||||||
|
public string Site { get; set; } = "";
|
||||||
|
|
||||||
|
public Guid SourceId { get; set; }
|
||||||
|
}
|
18
Newsbot.Collector.Domain/Entities/SourceEntity.cs
Normal file
18
Newsbot.Collector.Domain/Entities/SourceEntity.cs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Entities;
|
||||||
|
|
||||||
|
public class SourceEntity
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public string Site { get; set; } = "";
|
||||||
|
public string Name { get; set; } = "";
|
||||||
|
|
||||||
|
// Source use to define the worker to query with but moving to Type as it was not used really.
|
||||||
|
public string Source { get; set; } = "";
|
||||||
|
public string Type { get; set; } = "";
|
||||||
|
public string Value { get; set; } = "";
|
||||||
|
public bool Enabled { get; set; }
|
||||||
|
public string Url { get; set; } = "";
|
||||||
|
public string Tags { get; set; } = "";
|
||||||
|
public bool Deleted { get; set; }
|
||||||
|
public string YoutubeId { get; set; } = "";
|
||||||
|
}
|
11
Newsbot.Collector.Domain/Entities/SubscriptionEntity.cs
Normal file
11
Newsbot.Collector.Domain/Entities/SubscriptionEntity.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Entities;
|
||||||
|
|
||||||
|
public class SubscriptionEntity
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public bool CodeAllowReleases { get; set; }
|
||||||
|
public bool CodeAllowCommits { get; set; }
|
||||||
|
|
||||||
|
public Guid SourceId { get; set; }
|
||||||
|
public Guid DiscordWebHookId { get; set; }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user