-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add quest event group tracking (#376)
- Loading branch information
Showing
29 changed files
with
3,043 additions
and
107 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace DragaliaAPI.Database.Entities; | ||
|
||
[Index(nameof(DeviceAccountId))] | ||
[PrimaryKey(nameof(DeviceAccountId), nameof(QuestEventId))] | ||
public class DbQuestEvent : IDbHasAccountId | ||
{ | ||
/// <inheritdoc /> | ||
public virtual DbPlayer? Owner { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[ForeignKey(nameof(Owner))] | ||
public required string DeviceAccountId { get; set; } | ||
|
||
[Column("QuestEventId")] | ||
public required int QuestEventId { get; set; } | ||
|
||
[Column("DailyPlayCount")] | ||
public int DailyPlayCount { get; set; } | ||
|
||
[Column("LastDailyResetTime")] | ||
public DateTimeOffset LastDailyResetTime { get; set; } = DateTimeOffset.UnixEpoch; | ||
|
||
[Column("WeeklyPlayCount")] | ||
public int WeeklyPlayCount { get; set; } | ||
|
||
[Column("LastWeeklyResetTime")] | ||
public DateTimeOffset LastWeeklyResetTime { get; set; } = DateTimeOffset.UnixEpoch; | ||
|
||
[Column("QuestBonusReceiveCount")] | ||
public int QuestBonusReceiveCount { get; set; } | ||
|
||
[Column("QuestBonusStackCount")] | ||
public int QuestBonusStackCount { get; set; } | ||
|
||
[Column("QuestBonusStackTime")] | ||
public DateTimeOffset QuestBonusStackTime { get; set; } = DateTimeOffset.UnixEpoch; | ||
|
||
[Column("QuestBonusReserveCount")] | ||
public int QuestBonusReserveCount { get; set; } | ||
|
||
[Column("QuestBonusReserveTime")] | ||
public DateTimeOffset QuestBonusReserveTime { get; set; } = DateTimeOffset.UnixEpoch; | ||
} |
Oops, something went wrong.