25 lines
630 B
C#
25 lines
630 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using MoonlightServers.Api.Infrastructure.Database.Interfaces;
|
|
|
|
namespace MoonlightServers.Api.Infrastructure.Database.Entities;
|
|
|
|
public class Node : IActionTimestamps
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[MaxLength(50)]
|
|
public string Name { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string HttpEndpointUrl { get; set; }
|
|
|
|
[MaxLength(10)]
|
|
public string TokenId { get; set; }
|
|
|
|
[MaxLength(64)]
|
|
public string Token { get; set; }
|
|
|
|
// Action timestamps
|
|
public DateTimeOffset CreatedAt { get; set; }
|
|
public DateTimeOffset UpdatedAt { get; set; }
|
|
} |