Files
SVSimServer/SVSim.Database/Models/SocialAccountConnection.cs
2025-05-18 02:27:17 -04:00

28 lines
716 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using Microsoft.EntityFrameworkCore;
using SVSim.Database.Enums;
namespace SVSim.Database.Models;
/// <summary>
/// A connection between a social account (ie facebook) and a viewer.
/// </summary>
[Owned]
public class SocialAccountConnection
{
/// <summary>
/// The type of the social account.
/// </summary>
public SocialAccountType AccountType { get; set; }
/// <summary>
/// The identifier of the social account.
/// </summary>
public ulong AccountId { get; set; }
/// <summary>
/// The viewer connected.
/// </summary>
public Viewer Viewer { get; set; } = new Viewer();
}