2026-02-12 15:24:25 -05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2026-02-18 10:43:27 -05:00
|
|
|
namespace OTSSignsOrchestrator.Core.Models.Entities;
|
2026-02-12 15:24:25 -05:00
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
}
|