devjamesbrandao_curso-dapper-balta-io/Projeto-Blog/Models/User.cs
using System.Collections.Generic;
using Dapper.Contrib.Extensions;

namespace Models
{
    [Table("[User]")]
    public class User
    {
        public User()
        {
            Roles = new List<Role>();
        }

        [Key] 
        public int Id { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }
        public string PasswordHash { get; set; }
        public string Bio { get; set; }
        public string Image { get; set; }
        public string Slug { get; set; }

        [Write(false)] 
        public List<Role> Roles { get; set; }
    }
}