Finished migration to postgresql. Updated mooncore package
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; } = "[]";
|
||||
}
|
||||
Reference in New Issue
Block a user