Dungeon Builder Phase 2
This commit is contained in:
@@ -1430,6 +1430,9 @@ namespace SystemRevivalServer.Migrations
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("AllowedBucketIdsJson")
|
||||
.HasColumnType("json");
|
||||
|
||||
b.Property<string>("Biome")
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("varchar(32)");
|
||||
@@ -1456,6 +1459,9 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<string>("DoorTemplateIdsJson")
|
||||
.HasColumnType("json");
|
||||
|
||||
b.Property<bool>("EnforceBiomeBuckets")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("FloorTemplateIdsJson")
|
||||
.HasColumnType("json");
|
||||
|
||||
@@ -2392,6 +2398,67 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("socket_names");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileBucket", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("BucketType")
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("varchar(32)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("tile_buckets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileBucketRule", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("SourceBucketId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TargetBucketId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<float>("Weight")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("SourceBucketId");
|
||||
|
||||
b.HasIndex("TargetBucketId");
|
||||
|
||||
b.ToTable("tile_bucket_rules");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileDefinition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -2425,6 +2492,9 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsInteractable")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsWalkable")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
@@ -2483,6 +2553,29 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("tile_definitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileDefinitionBucket", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("TileBucketId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TileDefinitionId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TileBucketId");
|
||||
|
||||
b.HasIndex("TileDefinitionId");
|
||||
|
||||
b.ToTable("tile_definition_buckets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileMapSheet", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -2531,6 +2624,46 @@ namespace SystemRevivalServer.Migrations
|
||||
b.ToTable("tilemap_sheets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileStamp", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
||||
b.Property<int>("Height")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("IsEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
|
||||
b.Property<string>("TilesJson")
|
||||
.HasColumnType("json");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<int>("Width")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("tile_stamps");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileTemplate", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -3103,6 +3236,25 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("SpriteSheet");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileBucketRule", b =>
|
||||
{
|
||||
b.HasOne("DataServer.Data.Entities.TileBucket", "SourceBucket")
|
||||
.WithMany()
|
||||
.HasForeignKey("SourceBucketId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("DataServer.Data.Entities.TileBucket", "TargetBucket")
|
||||
.WithMany()
|
||||
.HasForeignKey("TargetBucketId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("SourceBucket");
|
||||
|
||||
b.Navigation("TargetBucket");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileDefinition", b =>
|
||||
{
|
||||
b.HasOne("DataServer.Data.Entities.TileMapSheet", "TileMapSheet")
|
||||
@@ -3114,6 +3266,25 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Navigation("TileMapSheet");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileDefinitionBucket", b =>
|
||||
{
|
||||
b.HasOne("DataServer.Data.Entities.TileBucket", "TileBucket")
|
||||
.WithMany()
|
||||
.HasForeignKey("TileBucketId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("DataServer.Data.Entities.TileDefinition", "TileDefinition")
|
||||
.WithMany()
|
||||
.HasForeignKey("TileDefinitionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("TileBucket");
|
||||
|
||||
b.Navigation("TileDefinition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DataServer.Data.Entities.TileTemplate", b =>
|
||||
{
|
||||
b.HasOne("DataServer.Data.Entities.TileDefinition", "PrimaryTileDefinition")
|
||||
|
||||
Reference in New Issue
Block a user