22 lines
495 B
C#
22 lines
495 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace OTSSignsOrchestrator.Models.Entities;
|
||
|
|
|
||
|
|
public class SecretMetadata
|
||
|
|
{
|
||
|
|
[Key]
|
||
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
||
|
|
|
||
|
|
[Required, MaxLength(200)]
|
||
|
|
public string Name { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
public bool IsGlobal { get; set; }
|
||
|
|
|
||
|
|
[MaxLength(100)]
|
||
|
|
public string? CustomerName { get; set; }
|
||
|
|
|
||
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||
|
|
|
||
|
|
public DateTime? LastRotatedAt { get; set; }
|
||
|
|
}
|