AutoCatAvalonia/AutoCatCore/Model/User.cs

24 lines
484 B
C#

using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace AutoCatCore.Model
{
public class User(string email, string token)
{
[Key]
[MaxLength(50)]
public string Email { get; init; } = email;
[MaxLength(300)]
public string? Token { get; init; } = token;
[JsonIgnore]
[MaxLength(300)]
public string? FirebaseIdToken { get; init; }
[JsonIgnore]
[MaxLength(300)]
public string? FirebaseRefreshToken { get; init; }
}
}