48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace NadekoBot.Core.Services.Database.Models
|
|
{
|
|
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; }
|
|
}
|
|
}
|