#422 db migration

This commit is contained in:
Hamid Reza Mohammadi 2024-06-17 13:57:01 +03:30
parent 667a0c7bfe
commit 6e07f68f43
3 changed files with 5828 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class DigitalSources : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DigitalSources",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
UrlSlug = table.Column<string>(type: "nvarchar(max)", nullable: true),
ShortName = table.Column<string>(type: "nvarchar(max)", nullable: true),
FullName = table.Column<string>(type: "nvarchar(max)", nullable: true),
SourceType = table.Column<string>(type: "nvarchar(max)", nullable: true),
CoupletsCount = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DigitalSources", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DigitalSources");
}
}
}

View File

@ -567,6 +567,34 @@ namespace RMuseum.Migrations
b.ToTable("FAQItems");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.DigitalSource", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CoupletsCount")
.HasColumnType("int");
b.Property<string>("FullName")
.HasColumnType("nvarchar(max)");
b.Property<string>("ShortName")
.HasColumnType("nvarchar(max)");
b.Property<string>("SourceType")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlSlug")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("DigitalSources");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.DiscoverQuotedQueueItem", b =>
{
b.Property<Guid>("Id")