-
-
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 Player leveling, item storage/consumption, stamina (#317)
- Loading branch information
Showing
42 changed files
with
2,826 additions
and
284 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using DragaliaAPI.Shared.Definitions.Enums; | ||
using Microsoft.EntityFrameworkCore; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace DragaliaAPI.Database.Entities; | ||
|
||
[Index(nameof(DeviceAccountId))] | ||
[PrimaryKey(nameof(DeviceAccountId), nameof(ItemId))] | ||
public class DbPlayerUseItem : IDbHasAccountId | ||
{ | ||
/// <inheritdoc /> | ||
public virtual DbPlayer? Owner { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[ForeignKey(nameof(Owner))] | ||
public required string DeviceAccountId { get; set; } | ||
|
||
[Column("ItemId")] | ||
public required UseItem ItemId { get; set; } | ||
|
||
[Column("Quantity")] | ||
public int Quantity { get; set; } | ||
} |
Oops, something went wrong.