1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-12-23 21:08:22 -05:00

Monecraft_Realms_Emulator -> MyMcRealms

This commit is contained in:
CyberL1 2024-04-20 11:40:37 +02:00
parent c536831faf
commit 1326184cc2
62 changed files with 271 additions and 272 deletions

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Attributes
namespace MyMcRealms.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class RequireMinecraftCookieAttribute : Attribute

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator
namespace MyMcRealms
{
public enum Compatility
{

View File

@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Mvc;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Entities;
using MyMcRealms.Data;
using MyMcRealms.Entities;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,12 +1,12 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Attributes;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Entities;
using Minecraft_Realms_Emulator.Requests;
using Minecraft_Realms_Emulator.Responses;
using MyMcRealms.Attributes;
using MyMcRealms.Data;
using MyMcRealms.Entities;
using MyMcRealms.Requests;
using MyMcRealms.Responses;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,10 +1,10 @@
using Microsoft.AspNetCore.Mvc;
using Minecraft_Realms_Emulator.Attributes;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Responses;
using MyMcRealms.Attributes;
using MyMcRealms.Data;
using MyMcRealms.Responses;
using Newtonsoft.Json;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,9 +1,9 @@
using Microsoft.AspNetCore.Mvc;
using Minecraft_Realms_Emulator.Attributes;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Responses;
using MyMcRealms.Attributes;
using MyMcRealms.Data;
using MyMcRealms.Responses;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,10 +1,10 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Attributes;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Responses;
using MyMcRealms.Attributes;
using MyMcRealms.Data;
using MyMcRealms.Responses;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Mvc;
using Minecraft_Realms_Emulator.Attributes;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Attributes;
using MyMcRealms.Data;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,13 +1,13 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Attributes;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Entities;
using Minecraft_Realms_Emulator.Requests;
using Minecraft_Realms_Emulator.Responses;
using MyMcRealms.Attributes;
using MyMcRealms.Data;
using MyMcRealms.Entities;
using MyMcRealms.Requests;
using MyMcRealms.Responses;
using Newtonsoft.Json;
namespace Minecraft_Realms_Emulator.Controllers
namespace MyMcRealms.Controllers
{
[Route("[controller]")]
[ApiController]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Entities;
using MyMcRealms.Entities;
namespace Minecraft_Realms_Emulator.Data
namespace MyMcRealms.Data
{
public class DataContext(DbContextOptions<DataContext> options) : DbContext(options)
{

View File

@ -1,6 +1,6 @@
using System.Text.Json;
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class Backup
{

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
[PrimaryKey(nameof(Key))]
public class Configuration

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class Connection
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class Invite
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class Player
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class Slot
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class Subscription
{

View File

@ -1,6 +1,6 @@
using System.Text.Json;
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class World
{

View File

@ -1,8 +1,8 @@
using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Entities;
using MyMcRealms.Data;
using MyMcRealms.Entities;
namespace Minecraft_Realms_Emulator.Helpers
namespace MyMcRealms.Helpers
{
public class Database
{

View File

@ -1,7 +1,7 @@
using Minecraft_Realms_Emulator.Attributes;
using MyMcRealms.Attributes;
using System.Text;
namespace Minecraft_Realms_Emulator.Middlewares
namespace MyMcRealms.Middlewares
{
public class MinecraftCookieMiddleware(RequestDelegate next)
{

View File

@ -4,12 +4,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240202175209_Initial")]
@ -25,7 +25,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()

View File

@ -3,7 +3,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Initial : Migration

View File

@ -4,12 +4,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240203132410_Subscriptions")]
@ -25,7 +25,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -53,7 +53,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()

View File

@ -3,7 +3,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Subscriptions : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240211135246_Slots")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -54,7 +54,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Slots : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240213104200_Connections")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<string>("Address")
.IsRequired()
@ -43,7 +43,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -71,7 +71,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -143,9 +143,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)

View File

@ -2,7 +2,7 @@
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Connections : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240213121346_Subscription_v2")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<string>("Address")
.IsRequired()
@ -43,7 +43,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -69,7 +69,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -141,9 +141,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -152,9 +152,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)

View File

@ -2,7 +2,7 @@
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Subscription_v2 : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240214154708_Backups")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<string>("Address")
.IsRequired()
@ -75,7 +75,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -101,7 +101,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -173,9 +173,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -184,9 +184,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -195,9 +195,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)

View File

@ -4,7 +4,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Backups : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240218160304_Connections_Id")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -83,7 +83,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -109,7 +109,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -181,9 +181,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -192,9 +192,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -203,9 +203,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)

View File

@ -3,7 +3,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Connections_Id : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240220092334_Invites")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -83,7 +83,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -112,7 +112,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -138,7 +138,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -210,9 +210,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -221,9 +221,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -232,9 +232,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -243,9 +243,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)

View File

@ -4,7 +4,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Invites : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240221131108_Players")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -83,7 +83,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -112,7 +112,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -151,7 +151,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Players");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -177,7 +177,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -245,9 +245,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -256,9 +256,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -267,9 +267,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -278,9 +278,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany("Players")
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -289,9 +289,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -300,7 +300,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Navigation("Players");
});

View File

@ -3,7 +3,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Players : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240301214442_Configuration")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Configuration", b =>
modelBuilder.Entity("MyMcRealms.Entities.Configuration", b =>
{
b.Property<string>("Key")
.HasColumnType("text");
@ -72,7 +72,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Configuration");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -97,7 +97,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -126,7 +126,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -165,7 +165,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Players");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -191,7 +191,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -259,9 +259,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -270,9 +270,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -281,9 +281,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -292,9 +292,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany("Players")
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -303,9 +303,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -314,7 +314,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Navigation("Players");
});

View File

@ -2,7 +2,7 @@
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Configuration : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240315231009_Subscriptions_StartDate_Readable_Field")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Configuration", b =>
modelBuilder.Entity("MyMcRealms.Entities.Configuration", b =>
{
b.Property<string>("Key")
.HasColumnType("text");
@ -72,7 +72,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Configuration");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -97,7 +97,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -126,7 +126,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -165,7 +165,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Players");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -190,7 +190,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -258,9 +258,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -269,9 +269,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -280,9 +280,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -291,9 +291,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany("Players")
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -302,9 +302,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -313,7 +313,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Navigation("Players");
});

View File

@ -2,7 +2,7 @@
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Subscriptions_StartDate_Readable_Field : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240317120329_Worlds_Subscription_field")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Configuration", b =>
modelBuilder.Entity("MyMcRealms.Entities.Configuration", b =>
{
b.Property<string>("Key")
.HasColumnType("text");
@ -72,7 +72,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Configuration");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -97,7 +97,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -126,7 +126,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -165,7 +165,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Players");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -191,7 +191,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -246,9 +246,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -257,9 +257,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -268,9 +268,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -279,9 +279,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany("Players")
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -290,18 +290,18 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithOne("Subscription")
.HasForeignKey("Minecraft_Realms_Emulator.Entities.Subscription", "WorldId")
.HasForeignKey("MyMcRealms.Entities.Subscription", "WorldId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Navigation("Players");

View File

@ -2,7 +2,7 @@
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Worlds_Subscription_field : Migration

View File

@ -5,12 +5,12 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240414062222_Configuration_Json")]
@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -58,7 +58,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Configuration", b =>
modelBuilder.Entity("MyMcRealms.Entities.Configuration", b =>
{
b.Property<string>("Key")
.HasColumnType("text");
@ -72,7 +72,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Configuration");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -97,7 +97,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -126,7 +126,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -165,7 +165,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Players");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -191,7 +191,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -246,9 +246,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -257,9 +257,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -268,9 +268,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -279,9 +279,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany("Players")
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -290,18 +290,18 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithOne("Subscription")
.HasForeignKey("Minecraft_Realms_Emulator.Entities.Subscription", "WorldId")
.HasForeignKey("MyMcRealms.Entities.Subscription", "WorldId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Navigation("Players");

View File

@ -2,7 +2,7 @@
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
/// <inheritdoc />
public partial class Configuration_Json : Migration

View File

@ -4,12 +4,12 @@ using System.Text.Json;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using MyMcRealms.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
namespace MyMcRealms.Migrations
{
[DbContext(typeof(DataContext))]
partial class DataContextModelSnapshot : ModelSnapshot
@ -23,7 +23,7 @@ namespace Minecraft_Realms_Emulator.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -55,7 +55,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Backups");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Configuration", b =>
modelBuilder.Entity("MyMcRealms.Entities.Configuration", b =>
{
b.Property<string>("Key")
.HasColumnType("text");
@ -69,7 +69,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Configuration");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -94,7 +94,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Connections");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -123,7 +123,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Invites");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -162,7 +162,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Players");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -188,7 +188,7 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -243,9 +243,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.ToTable("Worlds");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
modelBuilder.Entity("MyMcRealms.Entities.Backup", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -254,9 +254,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
modelBuilder.Entity("MyMcRealms.Entities.Connection", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -265,9 +265,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
modelBuilder.Entity("MyMcRealms.Entities.Invite", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany()
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -276,9 +276,9 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Player", b =>
modelBuilder.Entity("MyMcRealms.Entities.Player", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithMany("Players")
.HasForeignKey("WorldId")
.OnDelete(DeleteBehavior.Cascade)
@ -287,18 +287,18 @@ namespace Minecraft_Realms_Emulator.Migrations
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
modelBuilder.Entity("MyMcRealms.Entities.Subscription", b =>
{
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
b.HasOne("MyMcRealms.Entities.World", "World")
.WithOne("Subscription")
.HasForeignKey("Minecraft_Realms_Emulator.Entities.Subscription", "WorldId")
.HasForeignKey("MyMcRealms.Entities.Subscription", "WorldId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("World");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
modelBuilder.Entity("MyMcRealms.Entities.World", b =>
{
b.Navigation("Players");

View File

@ -1,16 +1,16 @@
@Minecraft_Realms_Emulator_HostAddress = http://localhost:8080
@MyMcRealms_HostAddress = http://localhost:8080
GET {{Minecraft_Realms_Emulator_HostAddress}}/mco/available
GET {{MyMcRealms_HostAddress}}/mco/available
Accept: application/json
###
GET {{Minecraft_Realms_Emulator_HostAddress}}/mco/client/compatible
GET {{MyMcRealms_HostAddress}}/mco/client/compatible
Accept: application/json
###
GET {{Minecraft_Realms_Emulator_HostAddress}}/worlds
GET {{MyMcRealms_HostAddress}}/worlds
Accept: application/json
###

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.MyMcAPI.Responses
namespace MyMcRealms.MyMcAPI.Responses
{
public class HelloResponse
{

View File

@ -1,6 +1,6 @@
using Minecraft_Realms_Emulator.MyMcAPI.Responses;
using MyMcRealms.MyMcAPI.Responses;
namespace Minecraft_Realms_Emulator.MyMcAPI
namespace MyMcRealms.MyMcAPI
{
public class MyMcAPI
{

View File

@ -5,7 +5,6 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<RootNamespace>Minecraft_Realms_Emulator</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@ -1,8 +1,8 @@
using Microsoft.EntityFrameworkCore;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Helpers;
using Minecraft_Realms_Emulator.Middlewares;
using Minecraft_Realms_Emulator.MyMcAPI;
using MyMcRealms.Data;
using MyMcRealms.Helpers;
using MyMcRealms.Middlewares;
using MyMcRealms.MyMcAPI;
using Npgsql;
var builder = WebApplication.CreateBuilder(args);

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Requests
namespace MyMcRealms.Requests
{
public class PlayerRequest
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Requests
namespace MyMcRealms.Requests
{
public class WorldCreateRequest
{

View File

@ -1,6 +1,6 @@
using Minecraft_Realms_Emulator.Entities;
using MyMcRealms.Entities;
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class BackupsResponse
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class InviteList
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class MinecraftPlayerInfo
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class NewsResponse
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class OpsResponse
{

View File

@ -1,6 +1,6 @@
using Minecraft_Realms_Emulator.Entities;
using MyMcRealms.Entities;
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class ServersResponse
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Responses
namespace MyMcRealms.Responses
{
public class SubscriptionResponse
{

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Entities
namespace MyMcRealms.Entities
{
public class WorldResponse : World
{