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.
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using Connected.Annotations;
|
|
|
|
|
using Connected.Entities.Annotations;
|
|
|
|
|
using Connected.ServiceModel.Annotations;
|
|
|
|
|
using Connected.ServiceModel.Data;
|
|
|
|
|
|
|
|
|
|
namespace Common.Notes;
|
|
|
|
|
public sealed record NoteText : TableEntity<long, string>, INoteText
|
|
|
|
|
{
|
|
|
|
|
public const string EntityKey = $"{Constants.CommonSchema}.{nameof(NoteText)}";
|
|
|
|
|
|
|
|
|
|
[Ordinal(-50000), PartitionKey, MaxLength(128)]
|
|
|
|
|
public string Entity { get; init; } = default!;
|
|
|
|
|
|
|
|
|
|
[Ordinal(-49000), PrimaryKey, MaxLength(128)]
|
|
|
|
|
public string EntityId { get; init; } = default!;
|
|
|
|
|
|
|
|
|
|
[Ordinal(0), Length(Units.MB), Nullable]
|
|
|
|
|
public string? Text { get; init; }
|
|
|
|
|
}
|