roadie/Roadie.Api.Library/Identity/ApplicationRole.cs

41 lines
1.2 KiB
C#
Raw Normal View History

2018-11-02 16:04:49 -05:00
using Microsoft.AspNetCore.Identity;
using System;
2018-11-02 17:20:36 -05:00
using System.Collections.Generic;
2018-11-02 16:04:49 -05:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Identity
{
[Table("userrole")]
2019-07-03 11:21:29 -05:00
public class ApplicationRole : IdentityRole<int>
2018-11-02 16:04:49 -05:00
{
2019-07-03 11:21:29 -05:00
[Column("createdDate")] public DateTime? CreatedDate { get; set; }
2018-11-02 16:04:49 -05:00
[Column("description")]
[StringLength(200)]
public string Description { get; set; }
2018-11-10 17:26:04 -06:00
//[Column("id")]
//[Key]
//public override int Id { get; set; }
2018-11-02 16:04:49 -05:00
2019-07-03 11:21:29 -05:00
[Column("isLocked")] public bool? IsLocked { get; set; }
2018-11-02 16:04:49 -05:00
2019-07-03 11:21:29 -05:00
[Column("lastUpdated")] public DateTime? LastUpdated { get; set; }
2018-11-02 16:04:49 -05:00
[Column("name")]
[Required]
[StringLength(80)]
public override string Name { get; set; }
2018-11-03 16:21:36 -05:00
[Column("RoadieId")]
2018-11-02 16:04:49 -05:00
[StringLength(36)]
public string RoadieId { get; set; }
2018-11-10 17:26:04 -06:00
public virtual ICollection<ApplicationRoleClaim> RoleClaims { get; set; }
2019-07-03 11:21:29 -05:00
[Column("status")] public short? Status { get; set; }
2018-11-02 17:20:36 -05:00
2018-11-10 17:26:04 -06:00
public virtual ICollection<ApplicationUserRole> UserRoles { get; set; }
2018-11-02 16:04:49 -05:00
}
}