removing unused db models
This commit is contained in:
parent
1f952b6ba1
commit
fea162a5b3
5955
RMuseum/Migrations/20250504083938_RemTrans.Designer.cs
generated
Normal file
5955
RMuseum/Migrations/20250504083938_RemTrans.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
113
RMuseum/Migrations/20250504083938_RemTrans.cs
Normal file
113
RMuseum/Migrations/20250504083938_RemTrans.cs
Normal file
@ -0,0 +1,113 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RemTrans : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "GanjoorVerseTranslation");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GanjoorPoemTranslations");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GanjoorPoemTranslations",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
LanguageId = table.Column<int>(type: "int", nullable: false),
|
||||
PoemId = table.Column<int>(type: "int", nullable: false),
|
||||
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
DateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Published = table.Column<bool>(type: "bit", nullable: false),
|
||||
Title = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_GanjoorPoemTranslations", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_GanjoorPoemTranslations_AspNetUsers_UserId",
|
||||
column: x => x.UserId,
|
||||
principalTable: "AspNetUsers",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_GanjoorPoemTranslations_GanjoorLanguages_LanguageId",
|
||||
column: x => x.LanguageId,
|
||||
principalTable: "GanjoorLanguages",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_GanjoorPoemTranslations_GanjoorPoems_PoemId",
|
||||
column: x => x.PoemId,
|
||||
principalTable: "GanjoorPoems",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GanjoorVerseTranslation",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
VerseId = table.Column<int>(type: "int", nullable: false),
|
||||
GanjoorPoemTranslationId = table.Column<int>(type: "int", nullable: true),
|
||||
TText = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_GanjoorVerseTranslation", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_GanjoorVerseTranslation_GanjoorPoemTranslations_GanjoorPoemTranslationId",
|
||||
column: x => x.GanjoorPoemTranslationId,
|
||||
principalTable: "GanjoorPoemTranslations",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_GanjoorVerseTranslation_GanjoorVerses_VerseId",
|
||||
column: x => x.VerseId,
|
||||
principalTable: "GanjoorVerses",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorPoemTranslations_LanguageId",
|
||||
table: "GanjoorPoemTranslations",
|
||||
column: "LanguageId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorPoemTranslations_PoemId",
|
||||
table: "GanjoorPoemTranslations",
|
||||
column: "PoemId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorPoemTranslations_UserId",
|
||||
table: "GanjoorPoemTranslations",
|
||||
column: "UserId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorVerseTranslation_GanjoorPoemTranslationId",
|
||||
table: "GanjoorVerseTranslation",
|
||||
column: "GanjoorPoemTranslationId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorVerseTranslation_VerseId",
|
||||
table: "GanjoorVerseTranslation",
|
||||
column: "VerseId");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1819,46 +1819,6 @@ namespace RMuseum.Migrations
|
||||
b.ToTable("GanjoorPoemSectionCorrections");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoemTranslation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("LanguageId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Published")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid>("UserId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LanguageId");
|
||||
|
||||
b.HasIndex("PoemId");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("GanjoorPoemTranslations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoet", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@ -2433,32 +2393,6 @@ namespace RMuseum.Migrations
|
||||
b.ToTable("GanjoorVerseNumbers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorVerseTranslation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("GanjoorPoemTranslationId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("VerseId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("GanjoorPoemTranslationId");
|
||||
|
||||
b.HasIndex("VerseId");
|
||||
|
||||
b.ToTable("GanjoorVerseTranslation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorVerseVOrderText", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@ -5126,33 +5060,6 @@ namespace RMuseum.Migrations
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoemTranslation", b =>
|
||||
{
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorLanguage", "Language")
|
||||
.WithMany()
|
||||
.HasForeignKey("LanguageId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoem", "Poem")
|
||||
.WithMany()
|
||||
.HasForeignKey("PoemId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RSecurityBackend.Models.Auth.Db.RAppUser", "User")
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Language");
|
||||
|
||||
b.Navigation("Poem");
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoet", b =>
|
||||
{
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorGeoLocation", "BirthLocation")
|
||||
@ -5349,21 +5256,6 @@ namespace RMuseum.Migrations
|
||||
b.Navigation("Numbering");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorVerseTranslation", b =>
|
||||
{
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoemTranslation", null)
|
||||
.WithMany("Verses")
|
||||
.HasForeignKey("GanjoorPoemTranslationId");
|
||||
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorVerse", "Verse")
|
||||
.WithMany()
|
||||
.HasForeignKey("VerseId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Verse");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorVerseVOrderText", b =>
|
||||
{
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoemCorrection", null)
|
||||
@ -5994,11 +5886,6 @@ namespace RMuseum.Migrations
|
||||
b.Navigation("VerseOrderText");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoemTranslation", b =>
|
||||
{
|
||||
b.Navigation("Verses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.MusicCatalogue.GanjoorAlbum", b =>
|
||||
{
|
||||
b.Navigation("Tracks");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user