Files
SVSimServer/SVSim.Database/Models/SocialAccountConnection.cs
2024-09-12 00:35:31 -04:00

29 lines
779 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using SVSim.Database.Enums;
namespace SVSim.Database.Models;
/// <summary>
/// A connection between a social account (ie facebook) and a viewer.
/// </summary>
public class SocialAccountConnection : BaseEntity<Guid>
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public override Guid Id { get; set; }
/// <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; }
}