fisr commit

This commit is contained in:
2023-07-08 21:28:08 +05:00
parent d9b74220d3
commit 7e1abc6db0
14 changed files with 502 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
using YandexGameServer.Services;
namespace YandexGameServer.Models
{
[Serializable]
public class CityUniqueCode
{
[BsonId, BsonRepresentation(BsonType.ObjectId)]
public string id { get; set; }
public Cities cityEnum { get; set; }
public string city { get; set; }
public int key { get; set; }
public int adminKey { get; set; }
}
}
+18
View File
@@ -0,0 +1,18 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using YandexGameServer.Controllers;
using YandexGameServer.Services;
namespace YandexGameServer.Models
{
[Serializable]
public class Client
{
[BsonId, BsonRepresentation(BsonType.ObjectId)]
public string id { get; set; }
public Cities city { get; set; }
public List<Games> games { get; set; } = new List<Games>();
public DateTime? gameFinishedDate { get; set; }
public bool isAdmin { get; set; }
}
}
+14
View File
@@ -0,0 +1,14 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace YandexGameServer.Models
{
[Serializable]
public class Tag
{
[BsonId, BsonRepresentation(BsonType.ObjectId)]
public string id { get; set; }
public string descrition { get; set; }
public string? city { get; set; }
}
}