Lots of data and model setup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user