a05c3aeb85
Added signalR auth
34 lines
926 B
C#
34 lines
926 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Step.Model
|
|
{
|
|
[Table("users")]
|
|
public class UserModel
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int UserId { get; set; }
|
|
[Required]
|
|
[Column("username")]
|
|
public string Username { get; set; }
|
|
[Column("first_name")]
|
|
public string FirstName { get; set; }
|
|
[Column("last_name")]
|
|
public string LastName { get; set; }
|
|
[Column("password")]
|
|
public string Password { get; set; }
|
|
[Column("security_stamp")]
|
|
public string SecurityStamp { get; set; }
|
|
[Column("role_id")]
|
|
public int RoleId { get; set; }
|
|
[ForeignKey("RoleId")]
|
|
public RoleModel Role { get; set; }
|
|
}
|
|
}
|