Port UserRepository and remove OW stuff

This commit is contained in:
runebaas 2018-05-10 02:00:26 +02:00
parent d2f31d0730
commit 15034d63a3
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
20 changed files with 176 additions and 328 deletions

View file

@ -1,7 +1,30 @@
namespace Geekbot.net.Database.Models
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models
{
public class UserModel
{
[Key]
public int Id { get; set; }
[Required]
public long UserId { get; set; }
[Required]
public string Username { get; set; }
[Required]
public string Discriminator { get; set; }
public string AvatarUrl { get; set; }
[Required]
public bool IsBot { get; set; }
public DateTimeOffset Joined { get; set; }
public string[] UsedNames { get; set; }
}
}