2017-09-10 01:52:34 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
namespace NadekoBot.Core.Services.Database.Models
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
|
|
|
|
public class ClubInfo : DbEntity
|
|
|
|
|
{
|
|
|
|
|
[MaxLength(20)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public int Discrim { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ImageUrl { get; set; } = "";
|
|
|
|
|
public int MinimumLevelReq { get; set; } = 5;
|
|
|
|
|
public int Xp { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
public int OwnerId { get; set; }
|
|
|
|
|
public DiscordUser Owner { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<DiscordUser> Users { get; set; } = new List<DiscordUser>();
|
|
|
|
|
|
|
|
|
|
public List<ClubApplicants> Applicants { get; set; } = new List<ClubApplicants>();
|
|
|
|
|
public List<ClubBans> Bans { get; set; } = new List<ClubBans>();
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Name + "#" + Discrim;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ClubApplicants
|
|
|
|
|
{
|
|
|
|
|
public int ClubId { get; set; }
|
|
|
|
|
public ClubInfo Club { get; set; }
|
|
|
|
|
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
public DiscordUser User { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ClubBans
|
|
|
|
|
{
|
|
|
|
|
public int ClubId { get; set; }
|
|
|
|
|
public ClubInfo Club { get; set; }
|
|
|
|
|
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
public DiscordUser User { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|