Remotely/Shared/Models/ApiToken.cs
2020-03-04 23:45:51 -08:00

27 lines
650 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Text.Json.Serialization;
namespace Remotely.Shared.Models
{
public class ApiToken
{
[Key]
public string ID { get; set; } = Guid.NewGuid().ToString();
public DateTimeOffset? LastUsed { get; set; }
[StringLength(200)]
public string Name { get; set; }
[JsonIgnore]
public Organization Organization { get; set; }
public string OrganizationID { get; set; }
public string Secret { get; set; }
public string Token { get; set; }
}
}