Lots of data and model setup
This commit is contained in:
@@ -10,7 +10,7 @@ public class BaseEntity<TKey> : ITimeTrackedEntity, IDbTrackedEntity
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public virtual TKey Id { get; set; }
|
||||
|
||||
public DateTime? DateCreated { get; set; }
|
||||
public DateTime DateCreated { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime? DateUpdated { get; set; }
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using DCGEngine.Database.Interfaces;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace DCGEngine.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A deck consisting of multiple <see cref="CardEntry"/> stored in the DB.
|
||||
/// </summary>
|
||||
public abstract class DeckEntry : BaseEntity<long>
|
||||
public abstract class DeckEntry : BaseEntity<Guid>
|
||||
{
|
||||
/// <summary>
|
||||
/// How this deck is referred to internally.
|
||||
|
||||
Reference in New Issue
Block a user