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 User
{
@@ -7,7 +9,10 @@ public class User
public string Username { get; set; }
public string Email { get; set; }
public string Password { get; set; }
[Column(TypeName="timestamp with time zone")]
public DateTime TokenValidTimestamp { get; set; } = DateTime.MinValue;
[Column(TypeName="jsonb")]
public string PermissionsJson { get; set; } = "[]";
}