56 lines
1.7 KiB
C#
56 lines
1.7 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using xModels.Base;
|
|
|
|
namespace xIdentityModels.Navigations {
|
|
/// <summary>
|
|
/// Represent a User's Avatar Entity
|
|
/// </summary>
|
|
public class XProfileImage : XBaseIntIDEntity {
|
|
/// <summary>
|
|
/// UserId
|
|
/// </summary>
|
|
/// <value>represent current Avatar belongs to which User</value>
|
|
public string UserId { get; set; }
|
|
/// <summary>
|
|
/// User
|
|
/// </summary>
|
|
/// <value>User instance <see>XUser</see></value>
|
|
[ForeignKey (nameof (UserId))]
|
|
public XUser User { get; set; }
|
|
/// <summary>
|
|
/// Name
|
|
/// </summary>
|
|
/// <value>Avatar's file name</value>
|
|
[Required]
|
|
[StringLength (255)]
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// Thumb
|
|
/// </summary>
|
|
/// <value>Avatar's thumbnail file's name</value>
|
|
[Required]
|
|
[StringLength (255)]
|
|
public string Thumb { get; set; }
|
|
/// <summary>
|
|
/// Path
|
|
/// </summary>
|
|
/// <value>Avatar's Image path on Profile Server</value>
|
|
[Required]
|
|
[StringLength (255)]
|
|
public string Path { get; set; }
|
|
/// <summary>
|
|
/// ThumbPath
|
|
/// </summary>
|
|
/// <value>Avatar's Thumbnail Image path on Profile Service</value>
|
|
[Required]
|
|
[StringLength (255)]
|
|
public string ThumbPath { get; set; }
|
|
/// <summary>
|
|
/// CreationDate
|
|
/// </summary>
|
|
/// <value>Upload Time</value>
|
|
public DateTime CreationDate { get; set; }
|
|
}
|
|
} |