blob: a4e11cb9c616c93910caba74d7ad0d712b4b7599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.0
namespace XSharp.Web.Api.Data;
internal sealed class RegistryToken
{
public Guid Id { get; init; } = Guid.NewGuid();
public required Guid UserId { get; init; }
public required string Name { get; init; }
public required byte[] Digest { get; init; }
public required string Prefix { get; init; }
public required string[] Scopes { get; init; }
public DateTimeOffset CreatedAt { get; init; } = DateTimeOffset.UtcNow;
public DateTimeOffset? LastUsedAt { get; set; }
public DateTimeOffset? RevokedAt { get; set; }
}
|