-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from timia2109/epic/rewrite
Epic/rewrite
- Loading branch information
Showing
60 changed files
with
1,658 additions
and
1,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ obj/ | |
# End of https://www.toptal.com/developers/gitignore/api/dotnetcore | ||
|
||
*.db* | ||
appsettings.Local.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace DayFlags.Core.Exceptions; | ||
|
||
public class FlagGroupEntryExistException : Exception | ||
{ | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace DayFlags.Core.Models; | ||
|
||
/// <summary> | ||
/// Represent a entry for a day | ||
/// </summary> | ||
public record DayFlag | ||
{ | ||
[Key] | ||
public Guid FlagId { get; init; } = Guid.NewGuid(); | ||
|
||
/// <summary> | ||
/// Affected <see cref="FlagType"/> | ||
/// </summary> | ||
public required Guid FlagTypeId { get; init; } | ||
|
||
/// <summary> | ||
/// Relation to <see cref="FlagType"/> | ||
/// </summary> | ||
public FlagType? FlagType { get; set; } | ||
|
||
/// <summary> | ||
/// Affected Date | ||
/// </summary> | ||
public required DateOnly Date { get; init; } | ||
|
||
/// <summary> | ||
/// Creation Time | ||
/// </summary> | ||
public DateTime Created { get; init; } = DateTime.Now; | ||
|
||
/// <summary> | ||
/// Creator of entry | ||
/// </summary> | ||
public Guid? Creator { get; init; } | ||
} |
Oops, something went wrong.