using System;

namespace NadekoBot.Services.Database.Models
{
    public class UnbanTimer : DbEntity
    {
        public ulong UserId { get; set; }
        public DateTime UnbanAt { get; set; }

        public override int GetHashCode() =>
            UserId.GetHashCode();

        public override bool Equals(object obj)
        {
            return obj is UnbanTimer ut
                ? ut.UserId == UserId
                : false;
        }
    }
}
