18 lines
502 B
C#
18 lines
502 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Moonlight.ApiServer.Database.Entities;
|
|
|
|
public class User
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
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; } = "[]";
|
|
} |