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

@@ -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; }
}

View File

@@ -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.