yavsc/src/Yavsc.Server/Models/Access/CircleAuthorizationToFile.cs

26 lines
600 B
C#
Raw Normal View History

2019-08-03 23:14:24 +02:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Abstract.Identity.Security;
using Yavsc.Models.Relationship;
namespace Yavsc.Server.Models.Access
{
public class CircleAuthorizationToFile : ICircleAuthorization
{
[Required]
public long CircleId
{
get; set;
}
[Required]
public string FullPath
{
get; set;
}
[ForeignKey("CircleId"), JsonIgnore]
public virtual Circle Circle { get; set; }
}
}