✨ Pass rewind service and account rewind service
This commit is contained in:
21
DysonNetwork.Shared/Models/RewindPoint.cs
Normal file
21
DysonNetwork.Shared/Models/RewindPoint.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DysonNetwork.Shared.Models;
|
||||
|
||||
public class SnRewindPoint : ModelBase
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public int Year { get; set; } = DateTime.UtcNow.Year;
|
||||
|
||||
/// <summary>
|
||||
/// Due to every year the Solar Network upgrade become better and better.
|
||||
/// The rewind data might be incompatible at that time,
|
||||
/// this field provide the clues for the client to parsing the data correctly.
|
||||
/// </summary>
|
||||
public int SchemaVersion { get; set; } = 1;
|
||||
|
||||
[Column(TypeName = "jsonb")] public Dictionary<string, object?> Data { get; set; } = new();
|
||||
|
||||
public Guid AccountId { get; set; }
|
||||
public SnAccount Account { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user