From b48b74fce5842a0e803149314703ab5bfeb5d307 Mon Sep 17 00:00:00 2001 From: Ted Wollman <25165500+TheTedder@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:04:16 -0400 Subject: [PATCH] Implement IHasCreationTimestamp. --- LeaderboardBackend/Models/Entities/AccountConfirmation.cs | 2 +- LeaderboardBackend/Models/Entities/AccountRecovery.cs | 2 +- LeaderboardBackend/Models/Entities/Category.cs | 2 +- LeaderboardBackend/Models/Entities/Leaderboard.cs | 2 +- LeaderboardBackend/Models/Entities/Run.cs | 2 +- LeaderboardBackend/Models/Entities/User.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LeaderboardBackend/Models/Entities/AccountConfirmation.cs b/LeaderboardBackend/Models/Entities/AccountConfirmation.cs index 919f23c1..3b90dc85 100644 --- a/LeaderboardBackend/Models/Entities/AccountConfirmation.cs +++ b/LeaderboardBackend/Models/Entities/AccountConfirmation.cs @@ -6,7 +6,7 @@ namespace LeaderboardBackend.Models.Entities; /// /// Represents a user account confirmation. /// -public class AccountConfirmation +public class AccountConfirmation : IHasCreationTimestamp { /// /// The unique identifier of the `AccountConfirmation`.
diff --git a/LeaderboardBackend/Models/Entities/AccountRecovery.cs b/LeaderboardBackend/Models/Entities/AccountRecovery.cs index ebf38bf8..0e7c34a1 100644 --- a/LeaderboardBackend/Models/Entities/AccountRecovery.cs +++ b/LeaderboardBackend/Models/Entities/AccountRecovery.cs @@ -6,7 +6,7 @@ namespace LeaderboardBackend.Models.Entities; /// /// Represents an account recovery attempt for a `User`. /// -public class AccountRecovery +public class AccountRecovery : IHasCreationTimestamp { /// /// The unique identifier of the `AccountRecovery`.
diff --git a/LeaderboardBackend/Models/Entities/Category.cs b/LeaderboardBackend/Models/Entities/Category.cs index 053e2354..b17cd445 100644 --- a/LeaderboardBackend/Models/Entities/Category.cs +++ b/LeaderboardBackend/Models/Entities/Category.cs @@ -15,7 +15,7 @@ public enum SortDirection /// Represents a `Category` tied to a `Leaderboard`. ///
[Index(nameof(Slug), IsUnique = true)] -public class Category +public class Category : IHasCreationTimestamp { /// /// The unique identifier of the `Category`.
diff --git a/LeaderboardBackend/Models/Entities/Leaderboard.cs b/LeaderboardBackend/Models/Entities/Leaderboard.cs index 0a982cde..87e0ada5 100644 --- a/LeaderboardBackend/Models/Entities/Leaderboard.cs +++ b/LeaderboardBackend/Models/Entities/Leaderboard.cs @@ -9,7 +9,7 @@ namespace LeaderboardBackend.Models.Entities; /// /// Represents a collection of `Category` entities. /// -public class Leaderboard +public class Leaderboard : IHasCreationTimestamp { /// /// The unique identifier of the `Leaderboard`.
diff --git a/LeaderboardBackend/Models/Entities/Run.cs b/LeaderboardBackend/Models/Entities/Run.cs index ae1c41c7..720b7f9c 100644 --- a/LeaderboardBackend/Models/Entities/Run.cs +++ b/LeaderboardBackend/Models/Entities/Run.cs @@ -6,7 +6,7 @@ namespace LeaderboardBackend.Models.Entities; /// /// Represents an entry on a `Category`. /// -public class Run +public class Run : IHasCreationTimestamp { /// /// The unique identifier of the `Run`.
diff --git a/LeaderboardBackend/Models/Entities/User.cs b/LeaderboardBackend/Models/Entities/User.cs index c995dea8..95b80de8 100644 --- a/LeaderboardBackend/Models/Entities/User.cs +++ b/LeaderboardBackend/Models/Entities/User.cs @@ -18,7 +18,7 @@ public enum UserRole /// /// Represents a user account registered on the website. /// -public class User +public class User : IHasCreationTimestamp { /// /// The unique identifier of the `User`.