new migration

This commit is contained in:
Damien Ostler 2024-02-19 04:55:39 -05:00
parent 2b23da286e
commit 00701288e1
10 changed files with 81 additions and 2238 deletions

View File

@ -1,440 +0,0 @@
// <auto-generated />
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using comissions.app.database;
#nullable disable
namespace comissions.app.api.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20240212032736_Initial")]
partial class Initial
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("comissions.app.database.Entities.ArtistPortfolioPiece", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("FileReference")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.Property<int?>("ArtistServiceId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId");
b.HasIndex("ArtistServiceId");
b.ToTable("ArtistPortfolioPieces");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistRequest", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("Accepted")
.HasColumnType("boolean");
b.Property<DateTime?>("AcceptedDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime>("RequestDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("ArtistRequests");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("Archived")
.HasColumnType("boolean");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<double>("Price")
.HasColumnType("double precision");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId");
b.ToTable("ArtistServices");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("BuyerId")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("CreatedDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("EndDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("PaymentUrl")
.HasColumnType("text");
b.Property<double>("Price")
.HasColumnType("double precision");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.Property<int>("ArtistServiceId")
.HasColumnType("integer");
b.Property<int>("Status")
.HasColumnType("integer");
b.Property<DateTime?>("TermsAcceptedDate")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("BuyerId");
b.HasIndex("ArtistId");
b.HasIndex("ArtistServiceId");
b.ToTable("ArtistServiceOrders");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrderReview", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("Rating")
.HasColumnType("integer");
b.Property<string>("Review")
.HasColumnType("text");
b.Property<DateTime>("ReviewDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("ReviewerId")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistServiceId")
.HasColumnType("integer");
b.Property<int>("ArtistServiceOrderId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ReviewerId");
b.HasIndex("ArtistServiceId");
b.HasIndex("ArtistServiceOrderId");
b.ToTable("ArtistServiceOrderReviews");
});
modelBuilder.Entity("comissions.app.database.Entities.User", b =>
{
b.Property<string>("Id")
.HasColumnType("text");
b.Property<string>("BanAdminId")
.HasColumnType("text");
b.Property<bool>("Banned")
.HasColumnType("boolean");
b.Property<DateTime?>("BannedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("BannedReason")
.HasColumnType("text");
b.Property<string>("Biography")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SuspendAdminId")
.HasColumnType("text");
b.Property<bool>("Suspended")
.HasColumnType("boolean");
b.Property<DateTime?>("SuspendedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("SuspendedReason")
.HasColumnType("text");
b.Property<DateTime?>("UnbanDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("UnsuspendDate")
.HasColumnType("timestamp with time zone");
b.Property<int?>("UserArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("Users");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("AgeRestricted")
.HasColumnType("boolean");
b.Property<string>("Biography")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("PrepaymentRequired")
.HasColumnType("boolean");
b.Property<List<string>>("SocialMediaLinks")
.IsRequired()
.HasColumnType("text[]");
b.Property<string>("StripeAccountId")
.HasColumnType("text");
b.Property<string>("SuspendAdminId")
.HasColumnType("text");
b.Property<bool>("Suspended")
.HasColumnType("boolean");
b.Property<DateTime?>("SuspendedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("SuspendedReason")
.HasColumnType("text");
b.Property<DateTime?>("UnsuspendDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId")
.IsUnique();
b.ToTable("UserArtists");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPortfolioPiece", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany("PortfolioPieces")
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany("PortfolioPieces")
.HasForeignKey("ArtistServiceId");
b.Navigation("Artist");
b.Navigation("ArtistService");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistRequest", b =>
{
b.HasOne("comissions.app.database.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany("ArtistServices")
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Artist");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.HasOne("comissions.app.database.Entities.User", "Buyer")
.WithMany("Orders")
.HasForeignKey("BuyerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany()
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany()
.HasForeignKey("ArtistServiceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Buyer");
b.Navigation("Artist");
b.Navigation("ArtistService");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrderReview", b =>
{
b.HasOne("comissions.app.database.Entities.User", "Reviewer")
.WithMany()
.HasForeignKey("ReviewerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany("Reviews")
.HasForeignKey("ArtistServiceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistServiceOrder", "ArtistServiceOrder")
.WithMany("Reviews")
.HasForeignKey("ArtistServiceOrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Reviewer");
b.Navigation("ArtistService");
b.Navigation("ArtistServiceOrder");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.HasOne("comissions.app.database.Entities.User", "User")
.WithOne("UserArtist")
.HasForeignKey("comissions.app.database.Entities.UserArtist", "UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.Navigation("PortfolioPieces");
b.Navigation("Reviews");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.Navigation("Reviews");
});
modelBuilder.Entity("comissions.app.database.Entities.User", b =>
{
b.Navigation("Orders");
b.Navigation("UserArtist");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.Navigation("PortfolioPieces");
b.Navigation("ArtistServices");
});
#pragma warning restore 612, 618
}
}
}

View File

@ -1,614 +0,0 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using comissions.app.database;
#nullable disable
namespace comissions.app.api.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20240218121059_page settings")]
partial class pagesettings
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("comissions.app.database.Entities.ArtistPageSettings", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("BackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DescriptionBackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DescriptionHeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DescriptionHeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("DescriptionHeaderSize")
.HasColumnType("integer");
b.Property<string>("DescriptionHeaderText")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("DescriptionHeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("DescriptionTextColor")
.IsRequired()
.HasColumnType("text");
b.Property<int>("DescriptionTextSize")
.HasColumnType("integer");
b.Property<string>("HeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("HeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("HeaderTextSize")
.HasColumnType("integer");
b.Property<bool>("HeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("PortfolioBackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<int>("PortfolioColumns")
.HasColumnType("integer");
b.Property<bool>("PortfolioEnabledScrolling")
.HasColumnType("boolean");
b.Property<bool>("PortfolioMasonry")
.HasColumnType("boolean");
b.Property<int>("PortfolioMaximumSize")
.HasColumnType("integer");
b.Property<string>("PortfolionHeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("PortfolionHeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("PortfolionHeaderSize")
.HasColumnType("integer");
b.Property<string>("PortfolionHeaderText")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("PortfolionHeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("RequestBackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonBGColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonHoverBGColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonTextColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestHeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestHeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("RequestHeaderSize")
.HasColumnType("integer");
b.Property<string>("RequestHeaderText")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("RequestHeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("RequestTermsColor")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId")
.IsUnique();
b.ToTable("ArtistPageSettings");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPortfolioPiece", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("FileReference")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.Property<int?>("ArtistServiceId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId");
b.HasIndex("ArtistServiceId");
b.ToTable("ArtistPortfolioPieces");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistRequest", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("Accepted")
.HasColumnType("boolean");
b.Property<DateTime?>("AcceptedDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime>("RequestDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("ArtistRequests");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("Archived")
.HasColumnType("boolean");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<double>("Price")
.HasColumnType("double precision");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId");
b.ToTable("ArtistServices");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("BuyerId")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("CreatedDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("EndDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("PaymentUrl")
.HasColumnType("text");
b.Property<double>("Price")
.HasColumnType("double precision");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.Property<int>("ArtistServiceId")
.HasColumnType("integer");
b.Property<int>("Status")
.HasColumnType("integer");
b.Property<DateTime?>("TermsAcceptedDate")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("BuyerId");
b.HasIndex("ArtistId");
b.HasIndex("ArtistServiceId");
b.ToTable("ArtistServiceOrders");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrderReview", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("Rating")
.HasColumnType("integer");
b.Property<string>("Review")
.HasColumnType("text");
b.Property<DateTime>("ReviewDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("ReviewerId")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistServiceId")
.HasColumnType("integer");
b.Property<int>("ArtistServiceOrderId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ReviewerId");
b.HasIndex("ArtistServiceId");
b.HasIndex("ArtistServiceOrderId");
b.ToTable("ArtistServiceOrderReviews");
});
modelBuilder.Entity("comissions.app.database.Entities.User", b =>
{
b.Property<string>("Id")
.HasColumnType("text");
b.Property<string>("BanAdminId")
.HasColumnType("text");
b.Property<bool>("Banned")
.HasColumnType("boolean");
b.Property<DateTime?>("BannedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("BannedReason")
.HasColumnType("text");
b.Property<string>("Biography")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SuspendAdminId")
.HasColumnType("text");
b.Property<bool>("Suspended")
.HasColumnType("boolean");
b.Property<DateTime?>("SuspendedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("SuspendedReason")
.HasColumnType("text");
b.Property<DateTime?>("UnbanDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("UnsuspendDate")
.HasColumnType("timestamp with time zone");
b.Property<int?>("UserArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("Users");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("AgeRestricted")
.HasColumnType("boolean");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("PrepaymentRequired")
.HasColumnType("boolean");
b.Property<string>("RequestGuidelines")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistPageSettingsId")
.HasColumnType("integer");
b.Property<string>("SocialMediaLink1")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SocialMediaLink2")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SocialMediaLink3")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SocialMediaLink4")
.IsRequired()
.HasColumnType("text");
b.Property<string>("StripeAccountId")
.HasColumnType("text");
b.Property<string>("SuspendAdminId")
.HasColumnType("text");
b.Property<bool>("Suspended")
.HasColumnType("boolean");
b.Property<DateTime?>("SuspendedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("SuspendedReason")
.HasColumnType("text");
b.Property<DateTime?>("UnsuspendDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId")
.IsUnique();
b.ToTable("UserArtists");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPageSettings", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithOne("ArtistPageSettings")
.HasForeignKey("comissions.app.database.Entities.ArtistPageSettings", "ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Artist");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPortfolioPiece", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany("PortfolioPieces")
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany("PortfolioPieces")
.HasForeignKey("ArtistServiceId");
b.Navigation("Artist");
b.Navigation("ArtistService");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistRequest", b =>
{
b.HasOne("comissions.app.database.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany("ArtistServices")
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Artist");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.HasOne("comissions.app.database.Entities.User", "Buyer")
.WithMany("Orders")
.HasForeignKey("BuyerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany()
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany()
.HasForeignKey("ArtistServiceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Buyer");
b.Navigation("Artist");
b.Navigation("ArtistService");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrderReview", b =>
{
b.HasOne("comissions.app.database.Entities.User", "Reviewer")
.WithMany()
.HasForeignKey("ReviewerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany("Reviews")
.HasForeignKey("ArtistServiceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistServiceOrder", "ArtistServiceOrder")
.WithMany("Reviews")
.HasForeignKey("ArtistServiceOrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Reviewer");
b.Navigation("ArtistService");
b.Navigation("ArtistServiceOrder");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.HasOne("comissions.app.database.Entities.User", "User")
.WithOne("UserArtist")
.HasForeignKey("comissions.app.database.Entities.UserArtist", "UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.Navigation("PortfolioPieces");
b.Navigation("Reviews");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.Navigation("Reviews");
});
modelBuilder.Entity("comissions.app.database.Entities.User", b =>
{
b.Navigation("Orders");
b.Navigation("UserArtist");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.Navigation("PortfolioPieces");
b.Navigation("ArtistPageSettings")
.IsRequired();
b.Navigation("ArtistServices");
});
#pragma warning restore 612, 618
}
}
}

View File

@ -1,178 +0,0 @@
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace comissions.app.api.Migrations
{
/// <inheritdoc />
public partial class pagesettings : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SocialMediaLinks",
table: "UserArtists");
migrationBuilder.RenameColumn(
name: "Biography",
table: "UserArtists",
newName: "SocialMediaLink4");
migrationBuilder.AddColumn<string>(
name: "Description",
table: "UserArtists",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "Name",
table: "UserArtists",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "RequestGuidelines",
table: "UserArtists",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<int>(
name: "ArtistPageSettingsId",
table: "UserArtists",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "SocialMediaLink1",
table: "UserArtists",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "SocialMediaLink2",
table: "UserArtists",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "SocialMediaLink3",
table: "UserArtists",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.CreateTable(
name: "ArtistPageSettings",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ArtistId = table.Column<int>(type: "integer", nullable: false),
RequestButtonHoverBGColor = table.Column<string>(type: "text", nullable: false),
RequestButtonTextColor = table.Column<string>(type: "text", nullable: false),
RequestButtonBGColor = table.Column<string>(type: "text", nullable: false),
RequestTermsColor = table.Column<string>(type: "text", nullable: false),
RequestBackgroundColor = table.Column<string>(type: "text", nullable: false),
RequestHeaderImageUrl = table.Column<string>(type: "text", nullable: false),
RequestHeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
RequestHeaderSize = table.Column<int>(type: "integer", nullable: false),
RequestHeaderColor = table.Column<string>(type: "text", nullable: false),
RequestHeaderText = table.Column<string>(type: "text", nullable: false),
PortfolioMaximumSize = table.Column<int>(type: "integer", nullable: false),
PortfolioEnabledScrolling = table.Column<bool>(type: "boolean", nullable: false),
PortfolioColumns = table.Column<int>(type: "integer", nullable: false),
PortfolioMasonry = table.Column<bool>(type: "boolean", nullable: false),
PortfolioBackgroundColor = table.Column<string>(type: "text", nullable: false),
PortfolionHeaderImageUrl = table.Column<string>(type: "text", nullable: false),
PortfolionHeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
PortfolionHeaderSize = table.Column<int>(type: "integer", nullable: false),
PortfolionHeaderColor = table.Column<string>(type: "text", nullable: false),
PortfolionHeaderText = table.Column<string>(type: "text", nullable: false),
DescriptionTextSize = table.Column<int>(type: "integer", nullable: false),
DescriptionTextColor = table.Column<string>(type: "text", nullable: false),
DescriptionBackgroundColor = table.Column<string>(type: "text", nullable: false),
DescriptionHeaderImageUrl = table.Column<string>(type: "text", nullable: false),
DescriptionHeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
DescriptionHeaderSize = table.Column<int>(type: "integer", nullable: false),
DescriptionHeaderColor = table.Column<string>(type: "text", nullable: false),
DescriptionHeaderText = table.Column<string>(type: "text", nullable: false),
HeaderImageUrl = table.Column<string>(type: "text", nullable: false),
HeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
HeaderTextSize = table.Column<int>(type: "integer", nullable: false),
HeaderColor = table.Column<string>(type: "text", nullable: false),
BackgroundColor = table.Column<string>(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistPageSettings", x => x.Id);
table.ForeignKey(
name: "FK_ArtistPageSettings_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_ArtistPageSettings_ArtistId",
table: "ArtistPageSettings",
column: "ArtistId",
unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ArtistPageSettings");
migrationBuilder.DropColumn(
name: "Description",
table: "UserArtists");
migrationBuilder.DropColumn(
name: "Name",
table: "UserArtists");
migrationBuilder.DropColumn(
name: "RequestGuidelines",
table: "UserArtists");
migrationBuilder.DropColumn(
name: "ArtistPageSettingsId",
table: "UserArtists");
migrationBuilder.DropColumn(
name: "SocialMediaLink1",
table: "UserArtists");
migrationBuilder.DropColumn(
name: "SocialMediaLink2",
table: "UserArtists");
migrationBuilder.DropColumn(
name: "SocialMediaLink3",
table: "UserArtists");
migrationBuilder.RenameColumn(
name: "SocialMediaLink4",
table: "UserArtists",
newName: "Biography");
migrationBuilder.AddColumn<List<string>>(
name: "SocialMediaLinks",
table: "UserArtists",
type: "text[]",
nullable: false);
}
}
}

View File

@ -1,618 +0,0 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using comissions.app.database;
#nullable disable
namespace comissions.app.api.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20240218233434_forgot column")]
partial class forgotcolumn
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("comissions.app.database.Entities.ArtistPageSettings", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("BackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DescriptionBackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DescriptionHeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DescriptionHeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("DescriptionHeaderSize")
.HasColumnType("integer");
b.Property<string>("DescriptionHeaderText")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("DescriptionHeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("DescriptionTextColor")
.IsRequired()
.HasColumnType("text");
b.Property<int>("DescriptionTextSize")
.HasColumnType("integer");
b.Property<string>("HeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("HeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("HeaderTextSize")
.HasColumnType("integer");
b.Property<bool>("HeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("PortfolioBackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<int>("PortfolioColumns")
.HasColumnType("integer");
b.Property<bool>("PortfolioEnabledScrolling")
.HasColumnType("boolean");
b.Property<bool>("PortfolioMasonry")
.HasColumnType("boolean");
b.Property<int>("PortfolioMaximumSize")
.HasColumnType("integer");
b.Property<string>("PortfolionHeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("PortfolionHeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("PortfolionHeaderSize")
.HasColumnType("integer");
b.Property<string>("PortfolionHeaderText")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("PortfolionHeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("RequestBackgroundColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonBGColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonHoverBGColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonHoverTextColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestButtonTextColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestHeaderColor")
.IsRequired()
.HasColumnType("text");
b.Property<string>("RequestHeaderImageUrl")
.IsRequired()
.HasColumnType("text");
b.Property<int>("RequestHeaderSize")
.HasColumnType("integer");
b.Property<string>("RequestHeaderText")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("RequestHeaderUseImage")
.HasColumnType("boolean");
b.Property<string>("RequestTermsColor")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId")
.IsUnique();
b.ToTable("ArtistPageSettings");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPortfolioPiece", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("FileReference")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.Property<int?>("ArtistServiceId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId");
b.HasIndex("ArtistServiceId");
b.ToTable("ArtistPortfolioPieces");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistRequest", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("Accepted")
.HasColumnType("boolean");
b.Property<DateTime?>("AcceptedDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime>("RequestDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("ArtistRequests");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("Archived")
.HasColumnType("boolean");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<double>("Price")
.HasColumnType("double precision");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ArtistId");
b.ToTable("ArtistServices");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("BuyerId")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("CreatedDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("EndDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("PaymentUrl")
.HasColumnType("text");
b.Property<double>("Price")
.HasColumnType("double precision");
b.Property<int>("ArtistId")
.HasColumnType("integer");
b.Property<int>("ArtistServiceId")
.HasColumnType("integer");
b.Property<int>("Status")
.HasColumnType("integer");
b.Property<DateTime?>("TermsAcceptedDate")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("BuyerId");
b.HasIndex("ArtistId");
b.HasIndex("ArtistServiceId");
b.ToTable("ArtistServiceOrders");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrderReview", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("Rating")
.HasColumnType("integer");
b.Property<string>("Review")
.HasColumnType("text");
b.Property<DateTime>("ReviewDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("ReviewerId")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistServiceId")
.HasColumnType("integer");
b.Property<int>("ArtistServiceOrderId")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ReviewerId");
b.HasIndex("ArtistServiceId");
b.HasIndex("ArtistServiceOrderId");
b.ToTable("ArtistServiceOrderReviews");
});
modelBuilder.Entity("comissions.app.database.Entities.User", b =>
{
b.Property<string>("Id")
.HasColumnType("text");
b.Property<string>("BanAdminId")
.HasColumnType("text");
b.Property<bool>("Banned")
.HasColumnType("boolean");
b.Property<DateTime?>("BannedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("BannedReason")
.HasColumnType("text");
b.Property<string>("Biography")
.IsRequired()
.HasColumnType("text");
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SuspendAdminId")
.HasColumnType("text");
b.Property<bool>("Suspended")
.HasColumnType("boolean");
b.Property<DateTime?>("SuspendedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("SuspendedReason")
.HasColumnType("text");
b.Property<DateTime?>("UnbanDate")
.HasColumnType("timestamp with time zone");
b.Property<DateTime?>("UnsuspendDate")
.HasColumnType("timestamp with time zone");
b.Property<int?>("UserArtistId")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("Users");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("AgeRestricted")
.HasColumnType("boolean");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("PrepaymentRequired")
.HasColumnType("boolean");
b.Property<string>("RequestGuidelines")
.IsRequired()
.HasColumnType("text");
b.Property<int>("ArtistPageSettingsId")
.HasColumnType("integer");
b.Property<string>("SocialMediaLink1")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SocialMediaLink2")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SocialMediaLink3")
.IsRequired()
.HasColumnType("text");
b.Property<string>("SocialMediaLink4")
.IsRequired()
.HasColumnType("text");
b.Property<string>("StripeAccountId")
.HasColumnType("text");
b.Property<string>("SuspendAdminId")
.HasColumnType("text");
b.Property<bool>("Suspended")
.HasColumnType("boolean");
b.Property<DateTime?>("SuspendedDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("SuspendedReason")
.HasColumnType("text");
b.Property<DateTime?>("UnsuspendDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId")
.IsUnique();
b.ToTable("UserArtists");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPageSettings", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithOne("ArtistPageSettings")
.HasForeignKey("comissions.app.database.Entities.ArtistPageSettings", "ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Artist");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistPortfolioPiece", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany("PortfolioPieces")
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany("PortfolioPieces")
.HasForeignKey("ArtistServiceId");
b.Navigation("Artist");
b.Navigation("ArtistService");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistRequest", b =>
{
b.HasOne("comissions.app.database.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany("ArtistServices")
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Artist");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.HasOne("comissions.app.database.Entities.User", "Buyer")
.WithMany("Orders")
.HasForeignKey("BuyerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.UserArtist", "Artist")
.WithMany()
.HasForeignKey("ArtistId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany()
.HasForeignKey("ArtistServiceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Buyer");
b.Navigation("Artist");
b.Navigation("ArtistService");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrderReview", b =>
{
b.HasOne("comissions.app.database.Entities.User", "Reviewer")
.WithMany()
.HasForeignKey("ReviewerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistService", "ArtistService")
.WithMany("Reviews")
.HasForeignKey("ArtistServiceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("comissions.app.database.Entities.ArtistServiceOrder", "ArtistServiceOrder")
.WithMany("Reviews")
.HasForeignKey("ArtistServiceOrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Reviewer");
b.Navigation("ArtistService");
b.Navigation("ArtistServiceOrder");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.HasOne("comissions.app.database.Entities.User", "User")
.WithOne("UserArtist")
.HasForeignKey("comissions.app.database.Entities.UserArtist", "UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("User");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistService", b =>
{
b.Navigation("PortfolioPieces");
b.Navigation("Reviews");
});
modelBuilder.Entity("comissions.app.database.Entities.ArtistServiceOrder", b =>
{
b.Navigation("Reviews");
});
modelBuilder.Entity("comissions.app.database.Entities.User", b =>
{
b.Navigation("Orders");
b.Navigation("UserArtist");
});
modelBuilder.Entity("comissions.app.database.Entities.UserArtist", b =>
{
b.Navigation("PortfolioPieces");
b.Navigation("ArtistPageSettings")
.IsRequired();
b.Navigation("ArtistServices");
});
#pragma warning restore 612, 618
}
}
}

View File

@ -1,29 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace comissions.app.api.Migrations
{
/// <inheritdoc />
public partial class forgotcolumn : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "RequestButtonHoverTextColor",
table: "ArtistPageSettings",
type: "text",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RequestButtonHoverTextColor",
table: "ArtistPageSettings");
}
}
}

View File

@ -1,240 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace comissions.app.api.Migrations
{
/// <inheritdoc />
public partial class namingfixes : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_ArtistPortfolioPieces_ArtistServices_ArtistServiceId",
table: "ArtistPortfolioPieces");
migrationBuilder.DropTable(
name: "ArtistServiceOrderReviews");
migrationBuilder.DropTable(
name: "ArtistServiceOrders");
migrationBuilder.DropTable(
name: "ArtistServices");
migrationBuilder.DropIndex(
name: "IX_ArtistPortfolioPieces_ArtistServiceId",
table: "ArtistPortfolioPieces");
migrationBuilder.DropColumn(
name: "ArtistServiceId",
table: "ArtistPortfolioPieces");
migrationBuilder.CreateTable(
name: "Requests",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
Message = table.Column<string>(type: "text", nullable: false),
Amount = table.Column<decimal>(type: "numeric", nullable: false),
UserId = table.Column<string>(type: "text", nullable: false),
ArtistId = table.Column<int>(type: "integer", nullable: false),
RequestDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Accepted = table.Column<bool>(type: "boolean", nullable: false),
AcceptedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Declined = table.Column<bool>(type: "boolean", nullable: false),
DeclinedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Completed = table.Column<bool>(type: "boolean", nullable: false),
CompletedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Requests", x => x.Id);
table.ForeignKey(
name: "FK_Requests_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_Requests_Users_UserId",
column: x => x.UserId,
principalTable: "Users",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_Requests_ArtistId",
table: "Requests",
column: "ArtistId");
migrationBuilder.CreateIndex(
name: "IX_Requests_UserId",
table: "Requests",
column: "UserId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Requests");
migrationBuilder.AddColumn<int>(
name: "ArtistServiceId",
table: "ArtistPortfolioPieces",
type: "integer",
nullable: true);
migrationBuilder.CreateTable(
name: "ArtistServices",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ArtistId = table.Column<int>(type: "integer", nullable: false),
Archived = table.Column<bool>(type: "boolean", nullable: false),
Description = table.Column<string>(type: "text", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
Price = table.Column<double>(type: "double precision", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistServices", x => x.Id);
table.ForeignKey(
name: "FK_ArtistServices_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "ArtistServiceOrders",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ArtistId = table.Column<int>(type: "integer", nullable: false),
ArtistServiceId = table.Column<int>(type: "integer", nullable: false),
BuyerId = table.Column<string>(type: "text", nullable: false),
CreatedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
EndDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
PaymentUrl = table.Column<string>(type: "text", nullable: true),
Price = table.Column<double>(type: "double precision", nullable: false),
Status = table.Column<int>(type: "integer", nullable: false),
TermsAcceptedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistServiceOrders", x => x.Id);
table.ForeignKey(
name: "FK_ArtistServiceOrders_ArtistServices_ArtistServiceId",
column: x => x.ArtistServiceId,
principalTable: "ArtistServices",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrders_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrders_Users_BuyerId",
column: x => x.BuyerId,
principalTable: "Users",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "ArtistServiceOrderReviews",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ArtistServiceId = table.Column<int>(type: "integer", nullable: false),
ArtistServiceOrderId = table.Column<int>(type: "integer", nullable: false),
ReviewerId = table.Column<string>(type: "text", nullable: false),
Rating = table.Column<int>(type: "integer", nullable: false),
Review = table.Column<string>(type: "text", nullable: true),
ReviewDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistServiceOrderReviews", x => x.Id);
table.ForeignKey(
name: "FK_ArtistServiceOrderReviews_ArtistServiceOrders_ArtistService~",
column: x => x.ArtistServiceOrderId,
principalTable: "ArtistServiceOrders",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrderReviews_ArtistServices_ArtistServiceId",
column: x => x.ArtistServiceId,
principalTable: "ArtistServices",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrderReviews_Users_ReviewerId",
column: x => x.ReviewerId,
principalTable: "Users",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_ArtistPortfolioPieces_ArtistServiceId",
table: "ArtistPortfolioPieces",
column: "ArtistServiceId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrderReviews_ArtistServiceId",
table: "ArtistServiceOrderReviews",
column: "ArtistServiceId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrderReviews_ArtistServiceOrderId",
table: "ArtistServiceOrderReviews",
column: "ArtistServiceOrderId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrderReviews_ReviewerId",
table: "ArtistServiceOrderReviews",
column: "ReviewerId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrders_ArtistId",
table: "ArtistServiceOrders",
column: "ArtistId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrders_ArtistServiceId",
table: "ArtistServiceOrders",
column: "ArtistServiceId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrders_BuyerId",
table: "ArtistServiceOrders",
column: "BuyerId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServices_ArtistId",
table: "ArtistServices",
column: "ArtistId");
migrationBuilder.AddForeignKey(
name: "FK_ArtistPortfolioPieces_ArtistServices_ArtistServiceId",
table: "ArtistPortfolioPieces",
column: "ArtistServiceId",
principalTable: "ArtistServices",
principalColumn: "Id");
}
}
}

View File

@ -12,8 +12,8 @@ using comissions.app.database;
namespace comissions.app.api.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20240219095038_naming fixes")]
partial class namingfixes
[Migration("20240219095441_Initial")]
partial class Initial
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)

View File

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
@ -67,8 +66,13 @@ namespace comissions.app.api.Migrations
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
UserId = table.Column<string>(type: "text", nullable: false),
Biography = table.Column<string>(type: "text", nullable: false),
SocialMediaLinks = table.Column<List<string>>(type: "text[]", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
Description = table.Column<string>(type: "text", nullable: false),
RequestGuidelines = table.Column<string>(type: "text", nullable: false),
SocialMediaLink1 = table.Column<string>(type: "text", nullable: false),
SocialMediaLink2 = table.Column<string>(type: "text", nullable: false),
SocialMediaLink3 = table.Column<string>(type: "text", nullable: false),
SocialMediaLink4 = table.Column<string>(type: "text", nullable: false),
AgeRestricted = table.Column<bool>(type: "boolean", nullable: false),
StripeAccountId = table.Column<string>(type: "text", nullable: true),
PrepaymentRequired = table.Column<bool>(type: "boolean", nullable: false),
@ -76,7 +80,8 @@ namespace comissions.app.api.Migrations
SuspendedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
UnsuspendDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
SuspendedReason = table.Column<string>(type: "text", nullable: true),
SuspendAdminId = table.Column<string>(type: "text", nullable: true)
SuspendAdminId = table.Column<string>(type: "text", nullable: true),
ArtistPageSettingsId = table.Column<int>(type: "integer", nullable: false)
},
constraints: table =>
{
@ -90,22 +95,52 @@ namespace comissions.app.api.Migrations
});
migrationBuilder.CreateTable(
name: "ArtistServices",
name: "ArtistPageSettings",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ArtistId = table.Column<int>(type: "integer", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
Description = table.Column<string>(type: "text", nullable: false),
Price = table.Column<double>(type: "double precision", nullable: false),
Archived = table.Column<bool>(type: "boolean", nullable: false)
RequestButtonHoverBGColor = table.Column<string>(type: "text", nullable: false),
RequestButtonHoverTextColor = table.Column<string>(type: "text", nullable: false),
RequestButtonTextColor = table.Column<string>(type: "text", nullable: false),
RequestButtonBGColor = table.Column<string>(type: "text", nullable: false),
RequestTermsColor = table.Column<string>(type: "text", nullable: false),
RequestBackgroundColor = table.Column<string>(type: "text", nullable: false),
RequestHeaderImageUrl = table.Column<string>(type: "text", nullable: false),
RequestHeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
RequestHeaderSize = table.Column<int>(type: "integer", nullable: false),
RequestHeaderColor = table.Column<string>(type: "text", nullable: false),
RequestHeaderText = table.Column<string>(type: "text", nullable: false),
PortfolioMaximumSize = table.Column<int>(type: "integer", nullable: false),
PortfolioEnabledScrolling = table.Column<bool>(type: "boolean", nullable: false),
PortfolioColumns = table.Column<int>(type: "integer", nullable: false),
PortfolioMasonry = table.Column<bool>(type: "boolean", nullable: false),
PortfolioBackgroundColor = table.Column<string>(type: "text", nullable: false),
PortfolionHeaderImageUrl = table.Column<string>(type: "text", nullable: false),
PortfolionHeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
PortfolionHeaderSize = table.Column<int>(type: "integer", nullable: false),
PortfolionHeaderColor = table.Column<string>(type: "text", nullable: false),
PortfolionHeaderText = table.Column<string>(type: "text", nullable: false),
DescriptionTextSize = table.Column<int>(type: "integer", nullable: false),
DescriptionTextColor = table.Column<string>(type: "text", nullable: false),
DescriptionBackgroundColor = table.Column<string>(type: "text", nullable: false),
DescriptionHeaderImageUrl = table.Column<string>(type: "text", nullable: false),
DescriptionHeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
DescriptionHeaderSize = table.Column<int>(type: "integer", nullable: false),
DescriptionHeaderColor = table.Column<string>(type: "text", nullable: false),
DescriptionHeaderText = table.Column<string>(type: "text", nullable: false),
HeaderImageUrl = table.Column<string>(type: "text", nullable: false),
HeaderUseImage = table.Column<bool>(type: "boolean", nullable: false),
HeaderTextSize = table.Column<int>(type: "integer", nullable: false),
HeaderColor = table.Column<string>(type: "text", nullable: false),
BackgroundColor = table.Column<string>(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistServices", x => x.Id);
table.PrimaryKey("PK_ArtistPageSettings", x => x.Id);
table.ForeignKey(
name: "FK_ArtistServices_UserArtists_ArtistId",
name: "FK_ArtistPageSettings_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
@ -119,19 +154,13 @@ namespace comissions.app.api.Migrations
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ArtistId = table.Column<int>(type: "integer", nullable: false),
FileReference = table.Column<string>(type: "text", nullable: false),
ArtistServiceId = table.Column<int>(type: "integer", nullable: true)
FileReference = table.Column<string>(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistPortfolioPieces", x => x.Id);
table.ForeignKey(
name: "FK_ArtistPortfolioPieces_ArtistServices_ArtistServiceId",
column: x => x.ArtistServiceId,
principalTable: "ArtistServices",
principalColumn: "Id");
table.ForeignKey(
name: "FK_ArtistPortfolioPieces_UserArtists_ArtistProfi~",
name: "FK_ArtistPortfolioPieces_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
@ -139,129 +168,65 @@ namespace comissions.app.api.Migrations
});
migrationBuilder.CreateTable(
name: "ArtistServiceOrders",
name: "Requests",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
BuyerId = table.Column<string>(type: "text", nullable: false),
ArtistServiceId = table.Column<int>(type: "integer", nullable: false),
Message = table.Column<string>(type: "text", nullable: false),
Amount = table.Column<decimal>(type: "numeric", nullable: false),
UserId = table.Column<string>(type: "text", nullable: false),
ArtistId = table.Column<int>(type: "integer", nullable: false),
Status = table.Column<int>(type: "integer", nullable: false),
Price = table.Column<double>(type: "double precision", nullable: false),
CreatedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
TermsAcceptedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
EndDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
PaymentUrl = table.Column<string>(type: "text", nullable: true)
RequestDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Accepted = table.Column<bool>(type: "boolean", nullable: false),
AcceptedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Declined = table.Column<bool>(type: "boolean", nullable: false),
DeclinedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Completed = table.Column<bool>(type: "boolean", nullable: false),
CompletedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistServiceOrders", x => x.Id);
table.PrimaryKey("PK_Requests", x => x.Id);
table.ForeignKey(
name: "FK_ArtistServiceOrders_ArtistServices_ArtistServiceId",
column: x => x.ArtistServiceId,
principalTable: "ArtistServices",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrders_UserArtists_ArtistId",
name: "FK_Requests_UserArtists_ArtistId",
column: x => x.ArtistId,
principalTable: "UserArtists",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrders_Users_BuyerId",
column: x => x.BuyerId,
name: "FK_Requests_Users_UserId",
column: x => x.UserId,
principalTable: "Users",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "ArtistServiceOrderReviews",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ReviewerId = table.Column<string>(type: "text", nullable: false),
ArtistServiceOrderId = table.Column<int>(type: "integer", nullable: false),
ArtistServiceId = table.Column<int>(type: "integer", nullable: false),
ReviewDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Review = table.Column<string>(type: "text", nullable: true),
Rating = table.Column<int>(type: "integer", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ArtistServiceOrderReviews", x => x.Id);
table.ForeignKey(
name: "FK_ArtistServiceOrderReviews_ArtistServiceOrders_ArtistService~",
column: x => x.ArtistServiceOrderId,
principalTable: "ArtistServiceOrders",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrderReviews_ArtistServices_ArtistServiceId",
column: x => x.ArtistServiceId,
principalTable: "ArtistServices",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_ArtistServiceOrderReviews_Users_ReviewerId",
column: x => x.ReviewerId,
principalTable: "Users",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_ArtistPageSettings_ArtistId",
table: "ArtistPageSettings",
column: "ArtistId",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_ArtistPortfolioPieces_ArtistId",
table: "ArtistPortfolioPieces",
column: "ArtistId");
migrationBuilder.CreateIndex(
name: "IX_ArtistPortfolioPieces_ArtistServiceId",
table: "ArtistPortfolioPieces",
column: "ArtistServiceId");
migrationBuilder.CreateIndex(
name: "IX_ArtistRequests_UserId",
table: "ArtistRequests",
column: "UserId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrderReviews_ReviewerId",
table: "ArtistServiceOrderReviews",
column: "ReviewerId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrderReviews_ArtistServiceId",
table: "ArtistServiceOrderReviews",
column: "ArtistServiceId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrderReviews_ArtistServiceOrderId",
table: "ArtistServiceOrderReviews",
column: "ArtistServiceOrderId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrders_BuyerId",
table: "ArtistServiceOrders",
column: "BuyerId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrders_ArtistId",
table: "ArtistServiceOrders",
name: "IX_Requests_ArtistId",
table: "Requests",
column: "ArtistId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServiceOrders_ArtistServiceId",
table: "ArtistServiceOrders",
column: "ArtistServiceId");
migrationBuilder.CreateIndex(
name: "IX_ArtistServices_ArtistId",
table: "ArtistServices",
column: "ArtistId");
name: "IX_Requests_UserId",
table: "Requests",
column: "UserId");
migrationBuilder.CreateIndex(
name: "IX_UserArtists_UserId",
@ -273,6 +238,9 @@ namespace comissions.app.api.Migrations
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ArtistPageSettings");
migrationBuilder.DropTable(
name: "ArtistPortfolioPieces");
@ -280,13 +248,7 @@ namespace comissions.app.api.Migrations
name: "ArtistRequests");
migrationBuilder.DropTable(
name: "ArtistServiceOrderReviews");
migrationBuilder.DropTable(
name: "ArtistServiceOrders");
migrationBuilder.DropTable(
name: "ArtistServices");
name: "Requests");
migrationBuilder.DropTable(
name: "UserArtists");

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("comissions.app.database.migrator")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1dc7ecdc8f45a8e7eebb50091a558ad010f54dc5")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2b23da286e3f457b81c736d85545ff7627eec0f8")]
[assembly: System.Reflection.AssemblyProductAttribute("comissions.app.database.migrator")]
[assembly: System.Reflection.AssemblyTitleAttribute("comissions.app.database.migrator")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
7ecd7fd3ed0865bcfbf8e22720cbe9d2bfd825c1ff3b4a43eca6d079e64d08a0
a02bbb75db3d6483063d35391ce15183b8790966ce3b3d4738783f284048ed6e