You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Common/Common/Net/Endpoint.cs

30 lines
675 B

using Connected.Annotations;
using Connected.Data;
using Connected.Entities.Annotations;
using Connected.Entities.Consistency;
using Connected.Net.Endpoints;
namespace Common.Net;
[Table(Schema = SchemaAttribute.DefaultSchema)]
internal record Endpoint : ConsistentEntity<int>, IEndpoint
{
public const string CacheKey = $"{SchemaAttribute.SysSchema}.{nameof(Endpoint)}";
[Ordinal(0)]
[Length(128)]
public string? Name { get; init; }
[Length(128)]
[Ordinal(1)]
public string? Address { get; init; }
[Default(Status.Enabled)]
[Ordinal(2)]
[Length(128)]
public string? AuthenticationToken { get; init; }
[Ordinal(3)]
public Status Status { get; init; }
}