1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-21 21:48:21 -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)] [AttributeUsage(AttributeTargets.Class)]
public class RequireMinecraftCookieAttribute : Attribute public class RequireMinecraftCookieAttribute : Attribute

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore; 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) public class DataContext(DbContextOptions<DataContext> options) : DbContext(options)
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.MyMcAPI.Responses namespace MyMcRealms.MyMcAPI.Responses
{ {
public class HelloResponse 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 public class MyMcAPI
{ {

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Requests namespace MyMcRealms.Requests
{ {
public class WorldCreateRequest 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 public class BackupsResponse
{ {

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
namespace Minecraft_Realms_Emulator.Responses namespace MyMcRealms.Responses
{ {
public class OpsResponse 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 public class ServersResponse
{ {

View File

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

View File

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