using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace FindAndDrive.Domain.Models.Entities; public class ApiKey { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key] public Guid ApiKeyId { get; set; } [ForeignKey(nameof(Client))] public Guid ClientId { get; set; } [ForeignKey(nameof(Role))] public Guid RoleId { get; set; } public string KeySecretHash { get; set; } public bool Revoked { get; set; } public DateTime? ModifiedAt { get; set; } public DateTime CreatedAt { get; set; } public virtual Client Client { get; set; } public virtual Role Role { get; set; } }