-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathPlayerRespectEntity.cs
More file actions
36 lines (28 loc) · 969 Bytes
/
PlayerRespectEntity.cs
File metadata and controls
36 lines (28 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Turbo.Database.Entities.Players;
[Table("player_respects")]
[Index(nameof(PlayerEntityId), IsUnique = true)]
public class PlayerRespectEntity : TurboEntity
{
[Column("player_id")]
public required int PlayerEntityId { get; set; }
[Column("respect_total")]
[DefaultValue(0)]
public int RespectTotal { get; set; }
[Column("respect_left")]
[DefaultValue(0)]
public int RespectLeft { get; set; }
[Column("pet_respect_left")]
[DefaultValue(0)]
public int PetRespectLeft { get; set; }
[Column("respect_replenishes_left")]
[DefaultValue(1)]
public int RespectReplenishesLeft { get; set; }
[Column("last_respect_reset")]
public DateTime? LastRespectReset { get; set; }
[ForeignKey(nameof(PlayerEntityId))]
public PlayerEntity? PlayerEntity { get; set; }
}