﻿using System.ComponentModel.DataAnnotations;
using Sffm.Persist;

namespace Sffm.Web.Security.Model
{
	/// <summary>
	/// webpages_OAuthToken Table Entity class
	/// </summary>
    [Table("Securit_OAuthToken")]
    public class OAuthToken : PersistObject
	{
		/// <summary>
		/// Gets or sets the token.
		/// </summary>
		/// <value>The token.</value>
		[Column(Id = true)]
        [Display(Name = "OAuthToken_Token", ResourceType = typeof(MetadataResources))]
		public string Token
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the secret.
		/// </summary>
		/// <value>The secret.</value>
        //[Column(TypeName = "nvarchar"), StringLength(100)]
        [Column]
        [Display(Name = "OAuthToken_Secret", ResourceType = typeof(MetadataResources))]
		public string Secret
		{
			get;
			set;
		}
	}
}
