44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using DigitalData.Core.Abstractions;
|
|
|
|
namespace EnvelopeGenerator.Domain.Entities
|
|
{
|
|
[Table("TBSIG_ENVELOPE_RECEIVER_READ_ONLY")]
|
|
public class EnvelopeReceiverReadOnly : IUnique<long>
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[Column("GUID")]
|
|
public long Id { get; init; }
|
|
|
|
[Column("ENVELOPE_ID")]
|
|
[Required]
|
|
public long EnvelopeId { get; init; }
|
|
|
|
[Column("RECEIVER_MAIL")]
|
|
[Required]
|
|
[StringLength(250)]
|
|
public required string ReceiverMail { get; init; }
|
|
|
|
[Column("DATE_VALID")]
|
|
[Required]
|
|
public DateTime DateValid { get; init; }
|
|
|
|
[Column("ADDED_WHO")]
|
|
[Required]
|
|
[StringLength(100)]
|
|
public required string AddedWho { get; init; }
|
|
|
|
[Column("ADDED_WHEN")]
|
|
[Required]
|
|
public DateTime AddedWhen { get; init; }
|
|
|
|
[Column("CHANGED_WHO")]
|
|
[StringLength(100)]
|
|
public required string ChangedWho { get; init; }
|
|
|
|
[Column("CHANGED_WHEN")]
|
|
public DateTime? ChangedWhen { get; init; }
|
|
}
|
|
} |