Lots of data and model setup

This commit is contained in:
gamer147
2025-05-18 02:27:17 -04:00
parent 79505e0c1a
commit b2024af852
77 changed files with 81988 additions and 433 deletions

View File

@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using Microsoft.EntityFrameworkCore;
using SVSim.Database.Enums;
namespace SVSim.Database.Models;
@@ -7,11 +8,9 @@ namespace SVSim.Database.Models;
/// <summary>
/// A connection between a social account (ie facebook) and a viewer.
/// </summary>
public class SocialAccountConnection : BaseEntity<Guid>
[Owned]
public class SocialAccountConnection
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public override Guid Id { get; set; }
/// <summary>
/// The type of the social account.
/// </summary>
@@ -21,9 +20,9 @@ public class SocialAccountConnection : BaseEntity<Guid>
/// The identifier of the social account.
/// </summary>
public ulong AccountId { get; set; }
/// <summary>
/// The viewer connected.
/// </summary>
public Viewer Viewer { get; set; }
public Viewer Viewer { get; set; } = new Viewer();
}