Finished migration to postgresql. Updated mooncore package

This commit is contained in:
2025-02-26 09:23:57 +01:00
parent 64f4a3a58c
commit f4a0aabb61
10 changed files with 276 additions and 40 deletions

View File

@@ -1,4 +1,6 @@
namespace Moonlight.ApiServer.Database.Entities;
using System.ComponentModel.DataAnnotations.Schema;
namespace Moonlight.ApiServer.Database.Entities;
public class ApiKey
{
@@ -6,6 +8,10 @@ public class ApiKey
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; }
}