Files
Moonlight/Moonlight.ApiServer/Database/Entities/ApiKey.cs

17 lines
438 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace Moonlight.ApiServer.Database.Entities;
public class ApiKey
{
public int Id { get; set; }
public string Secret { get; set; }
public string Description { get; set; }
[Column(TypeName="jsonb")]
public string PermissionsJson { get; set; } = "[]";
[Column(TypeName = "timestamp with time zone")]
public DateTime ExpiresAt { get; set; }
}